[cfe-commits] r123159 - in /cfe/trunk/include/clang/StaticAnalyzer/PathSensitive: CheckerVisitor.def CheckerVisitor.h

Zhongxing Xu xuzhongxing at gmail.com
Sun Jan 9 21:39:35 PST 2011


Author: zhongxingxu
Date: Sun Jan  9 23:39:35 2011
New Revision: 123159

URL: http://llvm.org/viewvc/llvm-project?rev=123159&view=rev
Log:
Add some expression kinds to CheckerVisitor.def.

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def
    cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def?rev=123159&r1=123158&r2=123159&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def Sun Jan  9 23:39:35 2011
@@ -22,10 +22,12 @@
 PREVISIT(ArraySubscriptExpr, Stmt)
 PREVISIT(BinaryOperator, Stmt)
 PREVISIT(CallExpr, GenericCall)
+PREVISIT(CompoundAssignOperator, BinaryOperator)
 PREVISIT(CStyleCastExpr, CastExpr)
 PREVISIT(CXXFunctionalCastExpr, CastExpr)
 PREVISIT(CXXOperatorCallExpr, GenericCall)
 PREVISIT(CXXMemberCallExpr, GenericCall)
+PREVISIT(CXXStaticCastExpr, CastExpr)
 PREVISIT(DeclStmt, Stmt)
 PREVISIT(ImplicitCastExpr, CastExpr)
 PREVISIT(ObjCAtSynchronizedStmt, Stmt)
@@ -35,6 +37,7 @@
 POSTVISIT(BlockExpr, Stmt)
 POSTVISIT(BinaryOperator, Stmt)
 POSTVISIT(CallExpr, GenericCall)
+POSTVISIT(CompoundAssignOperator, BinaryOperator)
 POSTVISIT(CXXOperatorCallExpr, GenericCall)
 POSTVISIT(CXXMemberCallExpr, GenericCall)
 POSTVISIT(ObjCMessageExpr, Stmt)

Modified: cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h?rev=123159&r1=123158&r2=123159&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h Sun Jan  9 23:39:35 2011
@@ -42,10 +42,6 @@
       default:
         assert(false && "Unsupport statement.");
         return;
-      case Stmt::CompoundAssignOperatorClass:
-        static_cast<ImplClass*>(this)->PreVisitBinaryOperator(C,
-                                         static_cast<const BinaryOperator*>(S));
-        break;
 
 #define PREVISIT(NAME, FALLBACK) \
 case Stmt::NAME ## Class:\
@@ -60,10 +56,6 @@
       default:
         assert(false && "Unsupport statement.");
         return;
-      case Stmt::CompoundAssignOperatorClass:
-        static_cast<ImplClass*>(this)->PostVisitBinaryOperator(C,
-                                         static_cast<const BinaryOperator*>(S));
-        break;
 
 #define POSTVISIT(NAME, FALLBACK) \
 case Stmt::NAME ## Class:\





More information about the cfe-commits mailing list