summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-04 04:24:32 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-03-04 04:24:32 +0000
commit8757fc5594583b282f0514a5cf6919f6ceca4395 (patch)
tree88138c2996d0d780ab81a45aeaafb9dc533f4004 /clang/lib/Index/IndexingContext.cpp
parenta3cb80adfcc588da895b14202a189a5711a1abb8 (diff)
downloadbcm5719-llvm-8757fc5594583b282f0514a5cf6919f6ceca4395.tar.gz
bcm5719-llvm-8757fc5594583b282f0514a5cf6919f6ceca4395.zip
[index] Ignore ObjCTypeParamDecls during indexing.
llvm-svn: 262686
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index 1645a9ab0bd..87bedd778ae 100644
--- a/clang/lib/Index/IndexingContext.cpp
+++ b/clang/lib/Index/IndexingContext.cpp
@@ -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;
OpenPOWER on IntegriCloud