aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexBody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libclang/IndexBody.cpp')
-rw-r--r--tools/libclang/IndexBody.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libclang/IndexBody.cpp b/tools/libclang/IndexBody.cpp
index 77ff843525..9330194cee 100644
--- a/tools/libclang/IndexBody.cpp
+++ b/tools/libclang/IndexBody.cpp
@@ -101,12 +101,12 @@ public:
IndexCtx.indexDeclGroupRef(S->getDeclGroup());
return true;
}
-
+
bool TraverseLambdaCapture(LambdaExpr::Capture C) {
if (C.capturesThis())
return true;
-
- if (IndexCtx.indexFunctionLocalSymbols())
+
+ if (IndexCtx.shouldIndexFunctionLocalSymbols())
IndexCtx.handleReference(C.getCapturedVar(), C.getLocation(),
Parent, ParentDC);
return true;