forked from OSchip/llvm-project
[index] Fix issue where data visitation was disabled with C++ operator call expressions, during indexing.
llvm-svn: 262290
This commit is contained in:
parent
c8e321d4bc
commit
d7511c8a22
|
@ -258,7 +258,7 @@ public:
|
||||||
DataRecursionQueue *Q = nullptr) {
|
DataRecursionQueue *Q = nullptr) {
|
||||||
if (E->getOperatorLoc().isInvalid())
|
if (E->getOperatorLoc().isInvalid())
|
||||||
return true; // implicit.
|
return true; // implicit.
|
||||||
return base::TraverseCXXOperatorCallExpr(E);
|
return base::TraverseCXXOperatorCallExpr(E, Q);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VisitDeclStmt(DeclStmt *S) {
|
bool VisitDeclStmt(DeclStmt *S) {
|
||||||
|
@ -325,7 +325,7 @@ public:
|
||||||
|
|
||||||
auto visitForm = [&](InitListExpr *Form) {
|
auto visitForm = [&](InitListExpr *Form) {
|
||||||
for (Stmt *SubStmt : Form->children()) {
|
for (Stmt *SubStmt : Form->children()) {
|
||||||
if (!TraverseStmt(SubStmt))
|
if (!TraverseStmt(SubStmt, Q))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue