summaryrefslogtreecommitdiffstats
path: root/clang/lib/GR/CFRefCount.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-12-22 18:53:20 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-12-22 18:53:20 +0000
commitca08fba4141f1d3ae6193b3c81fb6ba8fb10d7dc (patch)
treef698b3925e75c9dd7191c220008b8e569fa6f083 /clang/lib/GR/CFRefCount.cpp
parenta700e976b658860418bc145ec0bdacd4f1db3264 (diff)
downloadbcm5719-llvm-ca08fba4141f1d3ae6193b3c81fb6ba8fb10d7dc.tar.gz
bcm5719-llvm-ca08fba4141f1d3ae6193b3c81fb6ba8fb10d7dc.zip
[analyzer] Refactoring: Move stuff into namespace 'GR'.
llvm-svn: 122423
Diffstat (limited to 'clang/lib/GR/CFRefCount.cpp')
-rw-r--r--clang/lib/GR/CFRefCount.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/GR/CFRefCount.cpp b/clang/lib/GR/CFRefCount.cpp
index 211c2659614..55d11a57b43 100644
--- a/clang/lib/GR/CFRefCount.cpp
+++ b/clang/lib/GR/CFRefCount.cpp
@@ -34,6 +34,7 @@
#include <stdarg.h>
using namespace clang;
+using namespace GR;
using llvm::StringRef;
using llvm::StrInStrNoCase;
@@ -396,6 +397,7 @@ void RefVal::print(llvm::raw_ostream& Out) const {
typedef llvm::ImmutableMap<SymbolRef, RefVal> RefBindings;
namespace clang {
+namespace GR {
template<>
struct GRStateTrait<RefBindings> : public GRStatePartialTrait<RefBindings> {
static void* GDMIndex() {
@@ -404,6 +406,7 @@ namespace clang {
}
};
}
+}
//===----------------------------------------------------------------------===//
// Summaries
@@ -1576,6 +1579,7 @@ namespace { class AutoreleasePoolContents {}; }
namespace { class AutoreleaseStack {}; }
namespace clang {
+namespace GR {
template<> struct GRStateTrait<AutoreleaseStack>
: public GRStatePartialTrait<ARStack> {
static inline void* GDMIndex() { return &AutoRBIndex; }
@@ -1585,6 +1589,7 @@ template<> struct GRStateTrait<AutoreleasePoolContents>
: public GRStatePartialTrait<ARPoolContents> {
static inline void* GDMIndex() { return &AutoRCIndex; }
};
+} // end GR namespace
} // end clang namespace
static SymbolRef GetCurrentAutoreleasePool(const GRState* state) {
@@ -3489,7 +3494,7 @@ void CFRefCount::RegisterChecks(GRExprEngine& Eng) {
Eng.registerCheck(new RetainReleaseChecker(this));
}
-GRTransferFuncs* clang::MakeCFRefCountTF(ASTContext& Ctx, bool GCEnabled,
+GRTransferFuncs* GR::MakeCFRefCountTF(ASTContext& Ctx, bool GCEnabled,
const LangOptions& lopts) {
return new CFRefCount(Ctx, GCEnabled, lopts);
}
OpenPOWER on IntegriCloud