[libclang] Indexing: only index implicit template instantiations via an opt-in indexing option.
llvm-svn: 150517
diff --git a/clang/tools/libclang/IndexBody.cpp b/clang/tools/libclang/IndexBody.cpp
index c400491..684d5ce 100644
--- a/clang/tools/libclang/IndexBody.cpp
+++ b/clang/tools/libclang/IndexBody.cpp
@@ -97,7 +97,7 @@
}
bool VisitDeclStmt(DeclStmt *S) {
- if (IndexCtx.indexFunctionLocalSymbols())
+ if (IndexCtx.shouldIndexFunctionLocalSymbols())
IndexCtx.indexDeclGroupRef(S->getDeclGroup());
return true;
}