[cfe-commits] r89851 - /cfe/trunk/include/clang/Analysis/PathSensitive/CheckerVisitor.def
Kovarththanan Rajaratnam
kovarththanan.rajaratnam at gmail.com
Wed Nov 25 00:37:24 PST 2009
Author: krj
Date: Wed Nov 25 02:37:20 2009
New Revision: 89851
URL: http://llvm.org/viewvc/llvm-project?rev=89851&view=rev
Log:
This patch streamlines CheckerVisitor.def so that it follows the usual '#ifndef foo' pattern:
#ifndef foo
#define foo(parm1)
#endif
foo(parm1) parm1 ...
#undef foo
Modified:
cfe/trunk/include/clang/Analysis/PathSensitive/CheckerVisitor.def
Modified: cfe/trunk/include/clang/Analysis/PathSensitive/CheckerVisitor.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/CheckerVisitor.def?rev=89851&r1=89850&r2=89851&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/CheckerVisitor.def (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/CheckerVisitor.def Wed Nov 25 02:37:20 2009
@@ -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,12 +26,9 @@
PREVISIT(DeclStmt)
PREVISIT(ObjCMessageExpr)
PREVISIT(ReturnStmt)
-#undef PREVISIT
-#endif
-#ifdef POSTVISIT
POSTVISIT(CallExpr)
POSTVISIT(BinaryOperator)
-#undef POSTVISIT
-#endif
+#undef PREVISIT
+#undef POSTVISIT
More information about the cfe-commits
mailing list