summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFG.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-12-15 01:38:04 +0000
committerTed Kremenek <kremenek@apple.com>2009-12-15 01:38:04 +0000
commitc98cdd175aafd6f592138f720eb016087ffdabbe (patch)
tree0599125c639065c5d72b5ef99835d16861bc572c /clang/lib/Analysis/CFG.cpp
parentcf16d2cc42c76f50e8914dec85913ce0209ea825 (diff)
downloadbcm5719-llvm-c98cdd175aafd6f592138f720eb016087ffdabbe.tar.gz
bcm5719-llvm-c98cdd175aafd6f592138f720eb016087ffdabbe.zip
Start the ball rolling on C++ support in the static analyzer. For
now, don't construct CFGs that contain C++ try/catch statements, and have GRExprEngine abort a path if it encounters a C++ construct it doesn't understand (which is mostly everything at this point). llvm-svn: 91389
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
-rw-r--r--clang/lib/Analysis/CFG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 524210e08a7..e1a1e72c204 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -94,7 +94,9 @@ private:
CFGBlock *VisitCompoundStmt(CompoundStmt *C);
CFGBlock *VisitConditionalOperator(ConditionalOperator *C);
CFGBlock *VisitContinueStmt(ContinueStmt *C);
+ CFGBlock *VisitCXXCatchStmt(CXXCatchStmt *S) { return NYS(); }
CFGBlock *VisitCXXThrowExpr(CXXThrowExpr *T);
+ CFGBlock *VisitCXXTryStmt(CXXTryStmt *S) { return NYS(); }
CFGBlock *VisitDeclStmt(DeclStmt *DS);
CFGBlock *VisitDeclSubExpr(Decl* D);
CFGBlock *VisitDefaultStmt(DefaultStmt *D);
OpenPOWER on IntegriCloud