From 50f6aca5d7c41c6a5db75838c6a4d670cbb9b4f3 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Mon, 10 Jan 2011 05:39:35 +0000 Subject: [PATCH] Add some expression kinds to CheckerVisitor.def. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123159 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def | 3 +++ .../clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def b/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def index 3ee8071985..f5673c804e 100644 --- a/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def +++ b/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def @@ -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 @@ PREVISIT(ReturnStmt, Stmt) POSTVISIT(BlockExpr, Stmt) POSTVISIT(BinaryOperator, Stmt) POSTVISIT(CallExpr, GenericCall) +POSTVISIT(CompoundAssignOperator, BinaryOperator) POSTVISIT(CXXOperatorCallExpr, GenericCall) POSTVISIT(CXXMemberCallExpr, GenericCall) POSTVISIT(ObjCMessageExpr, Stmt) diff --git a/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h b/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h index 68677f5503..c08560a2b0 100644 --- a/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h +++ b/include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h @@ -42,10 +42,6 @@ public: default: assert(false && "Unsupport statement."); return; - case Stmt::CompoundAssignOperatorClass: - static_cast(this)->PreVisitBinaryOperator(C, - static_cast(S)); - break; #define PREVISIT(NAME, FALLBACK) \ case Stmt::NAME ## Class:\ @@ -60,10 +56,6 @@ break; default: assert(false && "Unsupport statement."); return; - case Stmt::CompoundAssignOperatorClass: - static_cast(this)->PostVisitBinaryOperator(C, - static_cast(S)); - break; #define POSTVISIT(NAME, FALLBACK) \ case Stmt::NAME ## Class:\ -- 2.50.1