[libclang] Bring back BodyIndexer::TraverseCXXOperatorCallExpr which

was removed in r155969 to address a deficiency of RecursiveASTVisitor
prior to recent changes on it.

llvm-svn: 156142
This commit is contained in:
Argyrios Kyrtzidis 2012-05-04 01:00:38 +00:00
parent 6c57a4703d
commit 90c337a23c
1 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,12 @@ public:
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());