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 @@ -6198,7 +6198,7 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
6198
6198
bool VisitCallExpr(CallExpr *E) {
6199
6199
if (const FunctionDecl *FD = E->getDirectCallee())
6200
6200
HasImmediateCalls |= FD->isImmediateFunction();
6201
- return RecursiveASTVisitor<ImmediateCallVisitor>::VisitCallExpr (E);
6201
+ return RecursiveASTVisitor<ImmediateCallVisitor>::VisitStmt (E);
6202
6202
}
6203
6203
6204
6204
// SourceLocExpr are not immediate invocations
@@ -6220,12 +6220,6 @@ struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> {
6220
6220
return VisitCXXMethodDecl(E->getCallOperator());
6221
6221
}
6222
6222
6223
- // Blocks don't support default parameters, and, as for lambdas,
6224
- // we don't consider their body a subexpression.
6225
- bool VisitBlockDecl(BlockDecl *B) { return true; }
6226
-
6227
- bool VisitCompoundStmt(CompoundStmt *B) { return true; }
6228
-
6229
6223
bool VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
6230
6224
return TraverseStmt(E->getExpr());
6231
6225
}
You can’t perform that action at this time.
0 commit comments