forked from OSchip/llvm-project
[index] Ignore ObjCTypeParamDecls during indexing.
llvm-svn: 262686
This commit is contained in:
parent
a3cb80adfc
commit
8757fc5594
|
@ -103,6 +103,9 @@ bool IndexingContext::isFunctionLocalDecl(const Decl *D) {
|
|||
if (isa<TemplateTemplateParmDecl>(D))
|
||||
return true;
|
||||
|
||||
if (isa<ObjCTypeParamDecl>(D))
|
||||
return true;
|
||||
|
||||
if (!D->getParentFunctionOrMethod())
|
||||
return false;
|
||||
|
||||
|
|
|
@ -38,3 +38,8 @@ void goo(Base *b) {
|
|||
// CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
|
||||
@interface Sub : Base<Prot2, Prot1>
|
||||
@end
|
||||
|
||||
@interface NSArray<ObjectType> : Base
|
||||
// CHECK-NOT: ObjectType
|
||||
-(ObjectType)getit;
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue