File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -6199,7 +6199,7 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
6199
6199
bool VisitCallExpr(CallExpr *E) {
6200
6200
if (const FunctionDecl *FD = E->getDirectCallee())
6201
6201
HasImmediateCalls |= FD->isImmediateFunction();
6202
- return RecursiveASTVisitor<ImmediateCallVisitor>::VisitCallExpr (E);
6202
+ return RecursiveASTVisitor<ImmediateCallVisitor>::VisitStmt (E);
6203
6203
}
6204
6204
6205
6205
bool VisitCXXConstructExpr(CXXConstructExpr *E) {
@@ -6227,12 +6227,6 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
6227
6227
return VisitCXXMethodDecl(E->getCallOperator());
6228
6228
}
6229
6229
6230
- // Blocks don't support default parameters, and, as for lambdas,
6231
- // we don't consider their body a subexpression.
6232
- bool VisitBlockDecl(BlockDecl *B) { return true; }
6233
-
6234
- bool VisitCompoundStmt(CompoundStmt *B) { return true; }
6235
-
6236
6230
bool VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
6237
6231
return TraverseStmt(E->getExpr());
6238
6232
}
You can’t perform that action at this time.
0 commit comments