[cfe-commits] r150555 - /cfe/trunk/tools/libclang/IndexBody.cpp

Richard Smith richard-llvm at metafoo.co.uk
Tue Feb 14 18:07:06 PST 2012


Author: rsmith
Date: Tue Feb 14 20:07:05 2012
New Revision: 150555

URL: http://llvm.org/viewvc/llvm-project?rev=150555&view=rev
Log:
Fix typo in r150549.

Modified:
    cfe/trunk/tools/libclang/IndexBody.cpp

Modified: cfe/trunk/tools/libclang/IndexBody.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/IndexBody.cpp?rev=150555&r1=150554&r2=150555&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/IndexBody.cpp (original)
+++ cfe/trunk/tools/libclang/IndexBody.cpp Tue Feb 14 20:07:05 2012
@@ -101,12 +101,12 @@
       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;





More information about the cfe-commits mailing list