aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2011-01-10 05:39:35 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2011-01-10 05:39:35 +0000
commit50f6aca5d7c41c6a5db75838c6a4d670cbb9b4f3 (patch)
tree74edf70d7fe0aa82b0c7b5638fc57aac9b39d2bf
parentf9d3cbbe07afa05c2414c7120d7141409e5a3663 (diff)
Add some expression kinds to CheckerVisitor.def.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123159 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.def3
-rw-r--r--include/clang/StaticAnalyzer/PathSensitive/CheckerVisitor.h8
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<ImplClass*>(this)->PreVisitBinaryOperator(C,
- static_cast<const BinaryOperator*>(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<ImplClass*>(this)->PostVisitBinaryOperator(C,
- static_cast<const BinaryOperator*>(S));
- break;
#define POSTVISIT(NAME, FALLBACK) \
case Stmt::NAME ## Class:\