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

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon May 7 15:16:49 PDT 2012


Author: akirtzidis
Date: Mon May  7 17:16:49 2012
New Revision: 156330

URL: http://llvm.org/viewvc/llvm-project?rev=156330&view=rev
Log:
Un-revert r156142, "[libclang] Bring back BodyIndexer::TraverseCXXOperatorCallExpr".

It was reverted on r156253.

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=156330&r1=156329&r2=156330&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/IndexBody.cpp (original)
+++ cfe/trunk/tools/libclang/IndexBody.cpp Mon May  7 17:16:49 2012
@@ -117,6 +117,12 @@
     return true;
   }
 
+  bool TraverseCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
+    if (E->getOperatorLoc().isInvalid())
+      return true; // implicit.
+    return base::TraverseCXXOperatorCallExpr(E);
+  }
+
   bool VisitDeclStmt(DeclStmt *S) {
     if (IndexCtx.shouldIndexFunctionLocalSymbols())
       IndexCtx.indexDeclGroupRef(S->getDeclGroup());





More information about the cfe-commits mailing list