diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-05-04 01:00:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-05-04 01:00:38 +0000 |
commit | 90c337a23c078ffc7dfd58a0850cee0f39801a6d (patch) | |
tree | cf61f19dd692852eb53d73f27b397c9e367f73ec /clang/tools/libclang/IndexBody.cpp | |
parent | 6c57a4703d7e9e25897e0a44423a44a410110fa7 (diff) | |
download | bcm5719-llvm-90c337a23c078ffc7dfd58a0850cee0f39801a6d.tar.gz bcm5719-llvm-90c337a23c078ffc7dfd58a0850cee0f39801a6d.zip |
[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
Diffstat (limited to 'clang/tools/libclang/IndexBody.cpp')
-rw-r--r-- | clang/tools/libclang/IndexBody.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/tools/libclang/IndexBody.cpp b/clang/tools/libclang/IndexBody.cpp index e975a6d1be4..239dde21bd4 100644 --- a/clang/tools/libclang/IndexBody.cpp +++ b/clang/tools/libclang/IndexBody.cpp @@ -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()); |