diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-15 01:38:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-15 01:38:04 +0000 |
commit | c98cdd175aafd6f592138f720eb016087ffdabbe (patch) | |
tree | 0599125c639065c5d72b5ef99835d16861bc572c /clang/lib/Analysis/CFG.cpp | |
parent | cf16d2cc42c76f50e8914dec85913ce0209ea825 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |