summaryrefslogtreecommitdiffstats
path: root/include/clang/Analysis/PathSensitive/CheckerVisitor.def
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Analysis/PathSensitive/CheckerVisitor.def')
-rw-r--r--include/clang/Analysis/PathSensitive/CheckerVisitor.def18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/clang/Analysis/PathSensitive/CheckerVisitor.def b/include/clang/Analysis/PathSensitive/CheckerVisitor.def
index 090a5d3..4144d1a 100644
--- a/include/clang/Analysis/PathSensitive/CheckerVisitor.def
+++ b/include/clang/Analysis/PathSensitive/CheckerVisitor.def
@@ -11,7 +11,14 @@
//
//===---------------------------------------------------------------------===//
-#ifdef PREVISIT
+#ifndef PREVISIT
+#define PREVISIT(NODE)
+#endif
+
+#ifndef POSTVISIT
+#define POSTVISIT(NODE)
+#endif
+
PREVISIT(ArraySubscriptExpr)
PREVISIT(BinaryOperator)
PREVISIT(CallExpr)
@@ -19,11 +26,10 @@ PREVISIT(CastExpr)
PREVISIT(DeclStmt)
PREVISIT(ObjCMessageExpr)
PREVISIT(ReturnStmt)
-#undef PREVISIT
-#endif
-#ifdef POSTVISIT
POSTVISIT(CallExpr)
-#undef POSTVISIT
-#endif
+POSTVISIT(BlockExpr)
+POSTVISIT(BinaryOperator)
+#undef PREVISIT
+#undef POSTVISIT
OpenPOWER on IntegriCloud