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/RangeConstraintManager.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/RangeConstraintManager.cpp')
-rw-r--r-- | lib/GR/RangeConstraintManager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/GR/RangeConstraintManager.cpp b/lib/GR/RangeConstraintManager.cpp index 423777e28d..378cb6e30f 100644 --- a/lib/GR/RangeConstraintManager.cpp +++ b/lib/GR/RangeConstraintManager.cpp @@ -23,6 +23,7 @@ #include "llvm/Support/raw_ostream.h" using namespace clang; +using namespace GR; namespace { class ConstraintRange {}; } static int ConstraintRangeIndex = 0; @@ -194,12 +195,14 @@ public: typedef llvm::ImmutableMap<SymbolRef,RangeSet> ConstraintRangeTy; namespace clang { +namespace GR { template<> struct GRStateTrait<ConstraintRange> : public GRStatePartialTrait<ConstraintRangeTy> { static inline void* GDMIndex() { return &ConstraintRangeIndex; } }; } +} namespace { class RangeConstraintManager : public SimpleConstraintManager{ @@ -251,8 +254,8 @@ private: } // end anonymous namespace -ConstraintManager* clang::CreateRangeConstraintManager(GRStateManager&, - GRSubEngine &subeng) { +ConstraintManager* GR::CreateRangeConstraintManager(GRStateManager&, + GRSubEngine &subeng) { return new RangeConstraintManager(subeng); } |