summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h')
-rw-r--r--contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h b/contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h
index 72f0ae1..e2ba89b 100644
--- a/contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h
+++ b/contrib/llvm/tools/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h
@@ -79,8 +79,13 @@ break;
}
}
- void PreVisitStmt(CheckerContext &C, const Stmt *S) {}
- void PostVisitStmt(CheckerContext &C, const Stmt *S) {}
+ void PreVisitStmt(CheckerContext &C, const Stmt *S) {
+ *C.respondsToCallback = false;
+ }
+
+ void PostVisitStmt(CheckerContext &C, const Stmt *S) {
+ *C.respondsToCallback = false;
+ }
void PreVisitCastExpr(CheckerContext &C, const CastExpr *E) {
static_cast<ImplClass*>(this)->PreVisitStmt(C, E);
OpenPOWER on IntegriCloud