]> granicus.if.org Git - clang/commit
ObjectiveC: Refactor applyObjCProtocolQualifiers.
authorManman Ren <manman.ren@gmail.com>
Tue, 13 Sep 2016 17:03:12 +0000 (17:03 +0000)
committerManman Ren <manman.ren@gmail.com>
Tue, 13 Sep 2016 17:03:12 +0000 (17:03 +0000)
commitbe6c7737f30c010cc76bea7ef544eb204acc68aa
treeca89c0c92da3970f2ef826436e23d9a4883d7313
parenta28ba16927e269339385c19cbb8c0630bff31d42
ObjectiveC: Refactor applyObjCProtocolQualifiers.

To construct the canonical type of ObjCTypeParamType, we need to apply
qualifiers on ObjCObjectPointerType. The updated applyObjCProtocolQualifiers
handles this case by merging the protocol lists, constructing a new
ObjCObjectType, then a new ObjCObjectPointerType.

rdar://24619481
rdar://25060179

Differential Revision: http://reviews.llvm.org/D24059

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281353 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaType.cpp