[index] Ignore ObjCTypeParamDecls during indexing.

llvm-svn: 262686
This commit is contained in:
Argyrios Kyrtzidis 2016-03-04 04:24:32 +00:00
parent a3cb80adfc
commit 8757fc5594
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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