diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-27 17:17:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-27 17:17:22 +0000 |
commit | 527556184b276c545be1355ad596fce29a0400fb (patch) | |
tree | f391aaff2a2fd1b6c58f1b30a259300f4ee176e8 /lib/Analysis/BasicObjCFoundationChecks.cpp | |
parent | 5c6422f36c5280046bbbcb54ff797639458a64ff (diff) |
Add creation of BasicObjCFoundationChecks when running GRSimpleVals from the driver.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicObjCFoundationChecks.cpp')
-rw-r--r-- | lib/Analysis/BasicObjCFoundationChecks.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Analysis/BasicObjCFoundationChecks.cpp b/lib/Analysis/BasicObjCFoundationChecks.cpp index 0fae7ddcd3..4d7a4d99db 100644 --- a/lib/Analysis/BasicObjCFoundationChecks.cpp +++ b/lib/Analysis/BasicObjCFoundationChecks.cpp @@ -13,6 +13,8 @@ // //===----------------------------------------------------------------------===// +#include "BasicObjCFoundationChecks.h" + #include "clang/Analysis/PathSensitive/ExplodedGraph.h" #include "clang/Analysis/PathSensitive/GRSimpleAPICheck.h" #include "clang/Analysis/PathSensitive/ValueState.h" @@ -53,6 +55,14 @@ public: } // end anonymous namespace +GRSimpleAPICheck* +clang::CreateBasicObjCFoundationChecks(ASTContext& Ctx, + ValueStateManager* VMgr) { + + return new BasicObjCFoundationChecks(Ctx, VMgr); +} + + bool BasicObjCFoundationChecks::Audit(ExplodedNode<ValueState>* N) { ObjCMessageExpr* ME = |