]> granicus.if.org Git - clang/commitdiff
Fix typo in r150549.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 15 Feb 2012 02:07:05 +0000 (02:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 15 Feb 2012 02:07:05 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150555 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/IndexBody.cpp

index 77ff843525c1a59a9a16bd4b66f1ef43348a1845..9330194ceecb01e04bd6015616c69ac311436061 100644 (file)
@@ -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;