From: Kovarththanan Rajaratnam Date: Wed, 25 Nov 2009 08:37:20 +0000 (+0000) Subject: This patch streamlines CheckerVisitor.def so that it follows the usual '#ifndef foo... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d23c447e4be8310413c473d83aaa547ad10d2271;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89851 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/CheckerVisitor.def b/include/clang/Analysis/PathSensitive/CheckerVisitor.def index 96e0d0c97b..27c316897b 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,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