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)
commit3569eb52670f538d2d7512659f862e3faf44702a
tree9c82846b0805f220ef47d3d8f69799de2d9a68ed
parent662b51f606044f1045aacfe6962b51ffb4352280
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

llvm-svn: 281353
clang/include/clang/AST/ASTContext.h
clang/lib/AST/ASTContext.cpp
clang/lib/Sema/SemaType.cpp