]> granicus.if.org Git - clang/commitdiff
This patch streamlines CheckerVisitor.def so that it follows the usual '#ifndef foo...
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Wed, 25 Nov 2009 08:37:20 +0000 (08:37 +0000)
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Wed, 25 Nov 2009 08:37:20 +0000 (08:37 +0000)
#ifndef foo
#define foo(parm1)
#endif

foo(parm1) parm1 ...

#undef foo

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89851 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/CheckerVisitor.def

index 96e0d0c97b65c31f0fb04748640c0322db3d728d..27c316897bcd60483bb9ff8afb65312c2c4214d3 100644 (file)
 //
 //===---------------------------------------------------------------------===//
 
-#ifdef PREVISIT
+#ifndef PREVISIT
+#define PREVISIT(NODE)
+#endif
+
+#ifndef POSTVISIT
+#define POSTVISIT(NODE)
+#endif
+
 PREVISIT(ArraySubscriptExpr)
 PREVISIT(BinaryOperator)
 PREVISIT(CallExpr)
@@ -19,12 +26,9 @@ PREVISIT(CastExpr)
 PREVISIT(DeclStmt)
 PREVISIT(ObjCMessageExpr)
 PREVISIT(ReturnStmt)
-#undef PREVISIT
-#endif
 
-#ifdef POSTVISIT
 POSTVISIT(CallExpr)
 POSTVISIT(BinaryOperator)
-#undef POSTVISIT
-#endif
 
+#undef PREVISIT
+#undef POSTVISIT