diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-12-23 07:20:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-12-23 07:20:52 +0000 |
commit | 9ef6537a894c33003359b1f9b9676e9178e028b7 (patch) | |
tree | e210ece0b0b16a3f888b3caca7eb5505af1fc5c2 /lib | |
parent | 51fbe2b76605b932f876e9850927d972580a294d (diff) |
Rename static analyzer namespace 'GR' to 'ento'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
86 files changed, 164 insertions, 164 deletions
diff --git a/lib/Analysis/CocoaConventions.cpp b/lib/Analysis/CocoaConventions.cpp index 5fb58de2f7..2c263cadad 100644 --- a/lib/Analysis/CocoaConventions.cpp +++ b/lib/Analysis/CocoaConventions.cpp @@ -18,7 +18,7 @@ #include "llvm/ADT/StringExtras.h" using namespace clang; -using namespace GR; +using namespace ento; using llvm::StringRef; diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 84bebf5526..ae6194beb8 100644 --- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -80,7 +80,7 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { case RewriteMacros: return new RewriteMacrosAction(); case RewriteObjC: return new RewriteObjCAction(); case RewriteTest: return new RewriteTestAction(); - case RunAnalysis: return new GR::AnalysisAction(); + case RunAnalysis: return new ento::AnalysisAction(); case RunPreprocessorOnly: return new PreprocessOnlyAction(); } } diff --git a/lib/GR/AggExprVisitor.cpp b/lib/GR/AggExprVisitor.cpp index 45022986de..af30c56974 100644 --- a/lib/GR/AggExprVisitor.cpp +++ b/lib/GR/AggExprVisitor.cpp @@ -16,7 +16,7 @@ #include "clang/AST/StmtVisitor.h" using namespace clang; -using namespace GR; +using namespace ento; namespace { /// AggExprVisitor is designed after AggExprEmitter of the CodeGen module. It diff --git a/lib/GR/AnalysisManager.cpp b/lib/GR/AnalysisManager.cpp index b0942e1bb6..767ae4ab75 100644 --- a/lib/GR/AnalysisManager.cpp +++ b/lib/GR/AnalysisManager.cpp @@ -12,7 +12,7 @@ #include "clang/Index/Indexer.h" using namespace clang; -using namespace GR; +using namespace ento; AnalysisContext * AnalysisManager::getAnalysisContextInAnotherTU(const Decl *D) { diff --git a/lib/GR/AnalyzerStatsChecker.cpp b/lib/GR/AnalyzerStatsChecker.cpp index c60b4504b2..fa8ae59894 100644 --- a/lib/GR/AnalyzerStatsChecker.cpp +++ b/lib/GR/AnalyzerStatsChecker.cpp @@ -20,7 +20,7 @@ #include "llvm/ADT/SmallPtrSet.h" using namespace clang; -using namespace GR; +using namespace ento; namespace { class AnalyzerStatsChecker : public CheckerVisitor<AnalyzerStatsChecker> { @@ -38,7 +38,7 @@ void *AnalyzerStatsChecker::getTag() { return &x; } -void GR::RegisterAnalyzerStatsChecker(ExprEngine &Eng) { +void ento::RegisterAnalyzerStatsChecker(ExprEngine &Eng) { Eng.registerCheck(new AnalyzerStatsChecker()); } diff --git a/lib/GR/BasicConstraintManager.cpp b/lib/GR/BasicConstraintManager.cpp index 2de0d9a23c..da91f5c985 100644 --- a/lib/GR/BasicConstraintManager.cpp +++ b/lib/GR/BasicConstraintManager.cpp @@ -19,7 +19,7 @@ #include "llvm/Support/raw_ostream.h" using namespace clang; -using namespace GR; +using namespace ento; namespace { class ConstNotEq {}; } @@ -32,7 +32,7 @@ static int ConstEqIndex = 0; static int ConstNotEqIndex = 0; namespace clang { -namespace GR { +namespace ento { template<> struct GRStateTrait<ConstNotEq> : public GRStatePartialTrait<ConstNotEqTy> { static inline void* GDMIndex() { return &ConstNotEqIndex; } @@ -98,7 +98,7 @@ public: } // end anonymous namespace -ConstraintManager* GR::CreateBasicConstraintManager(GRStateManager& statemgr, +ConstraintManager* ento::CreateBasicConstraintManager(GRStateManager& statemgr, SubEngine &subengine) { return new BasicConstraintManager(statemgr, subengine); } diff --git a/lib/GR/BasicStore.cpp b/lib/GR/BasicStore.cpp index 1c8ab11a96..9eb8d79ce4 100644 --- a/lib/GR/BasicStore.cpp +++ b/lib/GR/BasicStore.cpp @@ -19,7 +19,7 @@ #include "llvm/ADT/ImmutableMap.h" using namespace clang; -using namespace GR; +using namespace ento; typedef llvm::ImmutableMap<const MemRegion*,SVal> BindingsTy; @@ -104,7 +104,7 @@ private: } // end anonymous namespace -StoreManager* GR::CreateBasicStoreManager(GRStateManager& StMgr) { +StoreManager* ento::CreateBasicStoreManager(GRStateManager& StMgr) { return new BasicStoreManager(StMgr); } diff --git a/lib/GR/BasicValueFactory.cpp b/lib/GR/BasicValueFactory.cpp index 7e45a15a9c..8e51361e00 100644 --- a/lib/GR/BasicValueFactory.cpp +++ b/lib/GR/BasicValueFactory.cpp @@ -16,7 +16,7 @@ #include "clang/GR/PathSensitive/BasicValueFactory.h" using namespace clang; -using namespace GR; +using namespace ento; void CompoundValData::Profile(llvm::FoldingSetNodeID& ID, QualType T, llvm::ImmutableList<SVal> L) { diff --git a/lib/GR/BlockCounter.cpp b/lib/GR/BlockCounter.cpp index ee76e7a2bc..dadf707cf2 100644 --- a/lib/GR/BlockCounter.cpp +++ b/lib/GR/BlockCounter.cpp @@ -17,7 +17,7 @@ #include "llvm/ADT/ImmutableMap.h" using namespace clang; -using namespace GR; +using namespace ento; namespace { diff --git a/lib/GR/BugReporter.cpp b/lib/GR/BugReporter.cpp index dedbd702bc..769e2b9c4d 100644 --- a/lib/GR/BugReporter.cpp +++ b/lib/GR/BugReporter.cpp @@ -30,7 +30,7 @@ #include <queue> using namespace clang; -using namespace GR; +using namespace ento; BugReporterVisitor::~BugReporterVisitor() {} BugReporterContext::~BugReporterContext() { diff --git a/lib/GR/BugReporterVisitors.cpp b/lib/GR/BugReporterVisitors.cpp index f56d053832..78b5ad66ab 100644 --- a/lib/GR/BugReporterVisitors.cpp +++ b/lib/GR/BugReporterVisitors.cpp @@ -20,7 +20,7 @@ #include "clang/GR/PathSensitive/GRState.h" using namespace clang; -using namespace GR; +using namespace ento; //===----------------------------------------------------------------------===// // Utility functions. diff --git a/lib/GR/CFRefCount.cpp b/lib/GR/CFRefCount.cpp index a99019cf37..2fe6b18c6d 100644 --- a/lib/GR/CFRefCount.cpp +++ b/lib/GR/CFRefCount.cpp @@ -34,7 +34,7 @@ #include <stdarg.h> using namespace clang; -using namespace GR; +using namespace ento; using llvm::StringRef; using llvm::StrInStrNoCase; @@ -397,7 +397,7 @@ void RefVal::print(llvm::raw_ostream& Out) const { typedef llvm::ImmutableMap<SymbolRef, RefVal> RefBindings; namespace clang { -namespace GR { +namespace ento { template<> struct GRStateTrait<RefBindings> : public GRStatePartialTrait<RefBindings> { static void* GDMIndex() { @@ -1579,7 +1579,7 @@ namespace { class AutoreleasePoolContents {}; } namespace { class AutoreleaseStack {}; } namespace clang { -namespace GR { +namespace ento { template<> struct GRStateTrait<AutoreleaseStack> : public GRStatePartialTrait<ARStack> { static inline void* GDMIndex() { return &AutoRBIndex; } @@ -3494,7 +3494,7 @@ void CFRefCount::RegisterChecks(ExprEngine& Eng) { Eng.registerCheck(new RetainReleaseChecker(this)); } -TransferFuncs* GR::MakeCFRefCountTF(ASTContext& Ctx, bool GCEnabled, +TransferFuncs* ento::MakeCFRefCountTF(ASTContext& Ctx, bool GCEnabled, const LangOptions& lopts) { return new CFRefCount(Ctx, GCEnabled, lopts); } diff --git a/lib/GR/CXXExprEngine.cpp b/lib/GR/CXXExprEngine.cpp index b1111c90fe..eee90f2b21 100644 --- a/lib/GR/CXXExprEngine.cpp +++ b/lib/GR/CXXExprEngine.cpp @@ -16,7 +16,7 @@ #include "clang/AST/DeclCXX.h" using namespace clang; -using namespace GR; +using namespace ento; namespace { class CallExprWLItem { diff --git a/lib/GR/Checker.cpp b/lib/GR/Checker.cpp index 521d9e2b7d..975d8475bc 100644 --- a/lib/GR/Checker.cpp +++ b/lib/GR/Checker.cpp @@ -14,7 +14,7 @@ #include "clang/GR/PathSensitive/Checker.h" using namespace clang; -using namespace GR; +using namespace ento; Checker::~Checker() {} diff --git a/lib/GR/CheckerHelpers.cpp b/lib/GR/CheckerHelpers.cpp index 23144a300e..81e83399ed 100644 --- a/lib/GR/CheckerHelpers.cpp +++ b/lib/GR/CheckerHelpers.cpp @@ -15,7 +15,7 @@ #include "clang/AST/Expr.h" // Recursively find any substatements containing macros -bool clang::GR::containsMacro(const Stmt *S) { +bool clang::ento::containsMacro(const Stmt *S) { if (S->getLocStart().isMacroID()) return true; @@ -32,7 +32,7 @@ bool clang::GR::containsMacro(const Stmt *S) { } // Recursively find any substatements containing enum constants -bool clang::GR::containsEnum(const Stmt *S) { +bool clang::ento::containsEnum(const Stmt *S) { const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); if (DR && isa<EnumConstantDecl>(DR->getDecl())) @@ -48,7 +48,7 @@ bool clang::GR::containsEnum(const Stmt *S) { } // Recursively find any substatements containing static vars -bool clang::GR::containsStaticLocal(const Stmt *S) { +bool clang::ento::containsStaticLocal(const Stmt *S) { const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); if (DR) @@ -66,7 +66,7 @@ bool clang::GR::containsStaticLocal(const Stmt *S) { } // Recursively find any substatements containing __builtin_offsetof -bool clang::GR::containsBuiltinOffsetOf(const Stmt *S) { +bool clang::ento::containsBuiltinOffsetOf(const Stmt *S) { if (isa<OffsetOfExpr>(S)) return true; diff --git a/lib/GR/Checkers/AdjustedReturnValueChecker.cpp b/lib/GR/Checkers/AdjustedReturnValueChecker.cpp index 3c78b39d20..d4e5389f85 100644 --- a/lib/GR/Checkers/AdjustedReturnValueChecker.cpp +++ b/lib/GR/Checkers/AdjustedReturnValueChecker.cpp @@ -19,7 +19,7 @@ #include "clang/GR/PathSensitive/CheckerVisitor.h" using namespace clang; -using namespace GR; +using namespace ento; namespace { class AdjustedReturnValueChecker : @@ -35,7 +35,7 @@ public: }; } -void GR::RegisterAdjustedReturnValueChecker(ExprEngine &Eng) { +void ento::RegisterAdjustedReturnValueChecker(ExprEngine &Eng) { Eng.registerCheck(new AdjustedReturnValueChecker()); } |