diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-22 18:53:20 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-22 18:53:20 +0000 |
commit | 5a4f98ff943e6a501b0fe47ade007c9bbf96cb88 (patch) | |
tree | b6c6c22c073c7c51e497c9158fca08ab0e58f944 /lib/GR/BasicConstraintManager.cpp | |
parent | a7af5ea88a6c5bdf87497cca6c20831e8c546751 (diff) |
[analyzer] Refactoring: Move stuff into namespace 'GR'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/GR/BasicConstraintManager.cpp')
-rw-r--r-- | lib/GR/BasicConstraintManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/GR/BasicConstraintManager.cpp b/lib/GR/BasicConstraintManager.cpp index 0166968151..ac289b89c2 100644 --- a/lib/GR/BasicConstraintManager.cpp +++ b/lib/GR/BasicConstraintManager.cpp @@ -19,6 +19,7 @@ #include "llvm/Support/raw_ostream.h" using namespace clang; +using namespace GR; namespace { class ConstNotEq {}; } @@ -31,6 +32,7 @@ static int ConstEqIndex = 0; static int ConstNotEqIndex = 0; namespace clang { +namespace GR { template<> struct GRStateTrait<ConstNotEq> : public GRStatePartialTrait<ConstNotEqTy> { static inline void* GDMIndex() { return &ConstNotEqIndex; } @@ -41,6 +43,7 @@ struct GRStateTrait<ConstEq> : public GRStatePartialTrait<ConstEqTy> { static inline void* GDMIndex() { return &ConstEqIndex; } }; } +} namespace { // BasicConstraintManager only tracks equality and inequality constraints of @@ -95,7 +98,7 @@ public: } // end anonymous namespace -ConstraintManager* clang::CreateBasicConstraintManager(GRStateManager& statemgr, +ConstraintManager* GR::CreateBasicConstraintManager(GRStateManager& statemgr, GRSubEngine &subengine) { return new BasicConstraintManager(statemgr, subengine); } |