From: Argyrios Kyrtzidis Date: Tue, 1 Mar 2016 02:46:32 +0000 (+0000) Subject: [index] Fix issue where data visitation was disabled with C++ operator call expressio... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82ff39a49903d1115c2f58b7036ce56074ede79e;p=clang [index] Fix issue where data visitation was disabled with C++ operator call expressions, during indexing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262290 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Index/IndexBody.cpp b/lib/Index/IndexBody.cpp index fda8388a32..74e082a7ca 100644 --- a/lib/Index/IndexBody.cpp +++ b/lib/Index/IndexBody.cpp @@ -258,7 +258,7 @@ public: DataRecursionQueue *Q = nullptr) { if (E->getOperatorLoc().isInvalid()) return true; // implicit. - return base::TraverseCXXOperatorCallExpr(E); + return base::TraverseCXXOperatorCallExpr(E, Q); } bool VisitDeclStmt(DeclStmt *S) { @@ -325,7 +325,7 @@ public: auto visitForm = [&](InitListExpr *Form) { for (Stmt *SubStmt : Form->children()) { - if (!TraverseStmt(SubStmt)) + if (!TraverseStmt(SubStmt, Q)) return false; } return true;