]> granicus.if.org Git - clang/commitdiff
Rename static analyzer namespace 'GR' to 'ento'.
authorTed Kremenek <kremenek@apple.com>
Thu, 23 Dec 2010 07:20:52 +0000 (07:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 23 Dec 2010 07:20:52 +0000 (07:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122492 91177308-0d34-0410-b5e6-96231b3b80d8

119 files changed:
include/clang/Analysis/DomainSpecific/CocoaConventions.h
include/clang/GR/AnalysisConsumer.h
include/clang/GR/BugReporter/BugReporter.h
include/clang/GR/BugReporter/BugType.h
include/clang/GR/BugReporter/PathDiagnostic.h
include/clang/GR/Checkers/DereferenceChecker.h
include/clang/GR/Checkers/LocalCheckers.h
include/clang/GR/FrontendActions.h
include/clang/GR/ManagerRegistry.h
include/clang/GR/PathDiagnosticClients.h
include/clang/GR/PathSensitive/AnalysisManager.h
include/clang/GR/PathSensitive/BasicValueFactory.h
include/clang/GR/PathSensitive/BlockCounter.h
include/clang/GR/PathSensitive/Checker.h
include/clang/GR/PathSensitive/CheckerHelpers.h
include/clang/GR/PathSensitive/CheckerVisitor.h
include/clang/GR/PathSensitive/ConstraintManager.h
include/clang/GR/PathSensitive/CoreEngine.h
include/clang/GR/PathSensitive/Environment.h
include/clang/GR/PathSensitive/ExplodedGraph.h
include/clang/GR/PathSensitive/ExprEngine.h
include/clang/GR/PathSensitive/ExprEngineBuilders.h
include/clang/GR/PathSensitive/GRState.h
include/clang/GR/PathSensitive/GRStateTrait.h
include/clang/GR/PathSensitive/MemRegion.h
include/clang/GR/PathSensitive/SValBuilder.h
include/clang/GR/PathSensitive/SVals.h
include/clang/GR/PathSensitive/Store.h
include/clang/GR/PathSensitive/SubEngine.h
include/clang/GR/PathSensitive/SummaryManager.h
include/clang/GR/PathSensitive/SymbolManager.h
include/clang/GR/PathSensitive/TransferFuncs.h
include/clang/GR/PathSensitive/WorkList.h
lib/Analysis/CocoaConventions.cpp
lib/FrontendTool/ExecuteCompilerInvocation.cpp
lib/GR/AggExprVisitor.cpp
lib/GR/AnalysisManager.cpp
lib/GR/AnalyzerStatsChecker.cpp
lib/GR/BasicConstraintManager.cpp
lib/GR/BasicStore.cpp
lib/GR/BasicValueFactory.cpp
lib/GR/BlockCounter.cpp
lib/GR/BugReporter.cpp
lib/GR/BugReporterVisitors.cpp
lib/GR/CFRefCount.cpp
lib/GR/CXXExprEngine.cpp
lib/GR/Checker.cpp
lib/GR/CheckerHelpers.cpp
lib/GR/Checkers/AdjustedReturnValueChecker.cpp
lib/GR/Checkers/AnalysisConsumer.cpp
lib/GR/Checkers/ArrayBoundChecker.cpp
lib/GR/Checkers/ArrayBoundCheckerV2.cpp
lib/GR/Checkers/AttrNonNullChecker.cpp
lib/GR/Checkers/BasicObjCFoundationChecks.cpp
lib/GR/Checkers/BasicObjCFoundationChecks.h
lib/GR/Checkers/BuiltinFunctionChecker.cpp
lib/GR/Checkers/CStringChecker.cpp
lib/GR/Checkers/CallAndMessageChecker.cpp
lib/GR/Checkers/CastSizeChecker.cpp
lib/GR/Checkers/CastToStructChecker.cpp
lib/GR/Checkers/CheckDeadStores.cpp
lib/GR/Checkers/CheckObjCDealloc.cpp
lib/GR/Checkers/CheckObjCInstMethSignature.cpp
lib/GR/Checkers/CheckSecuritySyntaxOnly.cpp
lib/GR/Checkers/CheckSizeofPointer.cpp
lib/GR/Checkers/ChrootChecker.cpp
lib/GR/Checkers/DereferenceChecker.cpp
lib/GR/Checkers/DivZeroChecker.cpp
lib/GR/Checkers/ExprEngine.cpp
lib/GR/Checkers/ExprEngineExperimentalChecks.cpp
lib/GR/Checkers/ExprEngineExperimentalChecks.h
lib/GR/Checkers/ExprEngineInternalChecks.h
lib/GR/Checkers/FixedAddressChecker.cpp
lib/GR/Checkers/FrontendActions.cpp
lib/GR/Checkers/IdempotentOperationChecker.cpp
lib/GR/Checkers/LLVMConventionsChecker.cpp
lib/GR/Checkers/MacOSXAPIChecker.cpp
lib/GR/Checkers/MallocChecker.cpp
lib/GR/Checkers/NSAutoreleasePoolChecker.cpp
lib/GR/Checkers/NSErrorChecker.cpp
lib/GR/Checkers/NoReturnFunctionChecker.cpp
lib/GR/Checkers/OSAtomicChecker.cpp
lib/GR/Checkers/ObjCAtSyncChecker.cpp
lib/GR/Checkers/ObjCUnusedIVarsChecker.cpp
lib/GR/Checkers/PointerArithChecker.cpp
lib/GR/Checkers/PointerSubChecker.cpp
lib/GR/Checkers/PthreadLockChecker.cpp
lib/GR/Checkers/ReturnPointerRangeChecker.cpp
lib/GR/Checkers/ReturnUndefChecker.cpp
lib/GR/Checkers/StackAddrLeakChecker.cpp
lib/GR/Checkers/StreamChecker.cpp
lib/GR/Checkers/UndefBranchChecker.cpp
lib/GR/Checkers/UndefCapturedBlockVarChecker.cpp
lib/GR/Checkers/UndefResultChecker.cpp
lib/GR/Checkers/UndefinedArraySubscriptChecker.cpp
lib/GR/Checkers/UndefinedAssignmentChecker.cpp
lib/GR/Checkers/UnixAPIChecker.cpp
lib/GR/Checkers/UnreachableCodeChecker.cpp
lib/GR/Checkers/VLASizeChecker.cpp
lib/GR/CoreEngine.cpp
lib/GR/Environment.cpp
lib/GR/ExplodedGraph.cpp
lib/GR/FlatStore.cpp
lib/GR/GRState.cpp
lib/GR/HTMLDiagnostics.cpp
lib/GR/ManagerRegistry.cpp
lib/GR/MemRegion.cpp
lib/GR/PathDiagnostic.cpp
lib/GR/PlistDiagnostics.cpp
lib/GR/RangeConstraintManager.cpp
lib/GR/RegionStore.cpp
lib/GR/SValBuilder.cpp
lib/GR/SVals.cpp
lib/GR/SimpleConstraintManager.cpp
lib/GR/SimpleConstraintManager.h
lib/GR/SimpleSValBuilder.cpp
lib/GR/Store.cpp
lib/GR/SymbolManager.cpp
lib/GR/TextPathDiagnostics.cpp

index 0212cbfb8b768db01c2b687ef9391aa1a6b4a0c8..18e81fed79f8b0d1e7da9be85f77a51f3eb6bedc 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/AST/Type.h"
 
 namespace clang {
-namespace GR {
+namespace ento {
 namespace cocoa {
  
   enum NamingConvention { NoConvention, CreateRule, InitRule };
index 805638867fb1b3c86871ffd099a1403499fe1492..86f6c727a4beda6382086376f267a7f15e363682 100644 (file)
@@ -23,7 +23,7 @@ class AnalyzerOptions;
 class ASTConsumer;
 class Preprocessor;
 
-namespace GR {
+namespace ento {
 
 /// CreateAnalysisConsumer - Creates an ASTConsumer to run various code
 /// analysis passes.  (The set of analyses run is controlled by command-line
index 31487b6eb60b3433b26dd6d422cef00e7f080ab5..7d2dffae75b5a497ba6ead47b30d32d3427420c3 100644 (file)
@@ -30,7 +30,7 @@ class Diagnostic;
 class Stmt;
 class ParentMap;
 
-namespace GR {
+namespace ento {
 
 class PathDiagnostic;
 class PathDiagnosticPiece;
index a18e59639cd04abab42e46c8a1dec59b471e106a..854094977acf0f9c8c5738f82e8889633cc82c4a 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class ExplodedNode;
 class ExprEngine;
index c19bb756b834886cca519c44b0794da6759295a4..6d53c097d29f337a4be02b091991b42988a2d695 100644 (file)
@@ -27,7 +27,7 @@ class Decl;
 class SourceManager;
 class Stmt;
 
-namespace GR {
+namespace ento {
 
 //===----------------------------------------------------------------------===//
 // High-level interface for handlers of path-sensitive diagnostics.
index 2ac45bf9ba521b92a3dcba42546f9572b6db3e9d..f9cce9ca9c6284b08e6aa0bcc69b1d669555c8fa 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class ExprEngine;
 class ExplodedNode;
index d9352ee8bcab955c84d6764cf611cf247d40db3b..e0f002b6d08a28ac6b5d76d0506bf71c4fd6357a 100644 (file)
@@ -28,7 +28,7 @@ class ObjCImplementationDecl;
 class LangOptions;
 class TranslationUnitDecl;
 
-namespace GR {
+namespace ento {
 
 class PathDiagnosticClient;
 class TransferFuncs;
index dd4a54950281803f2590461b2e431f9fcb181be0..e3867a2a24780034c948905d41ad316f314b0917 100644 (file)
@@ -14,7 +14,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 //===----------------------------------------------------------------------===//
 // AST Consumer Actions
index 30c487d320b5757fdc6aa821779dd9244d621ed0..ff174c0b4aa694c475fe642b42973cb4ea430f37 100644 (file)
@@ -18,7 +18,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 /// ManagerRegistry - This class records manager creators registered at
 /// runtime. The information is communicated to AnalysisManager through static
index 612dfb16151b564e644c01dfaec90b4ef40ab93a..2713e31fc0d1217b6643ab09e6c4d7b9cbbbdaec 100644 (file)
@@ -20,7 +20,7 @@ namespace clang {
 
 class Preprocessor;
 
-namespace GR {
+namespace ento {
 
 class PathDiagnosticClient;
 
index 59bf416c8577e4a339c81734b1962626db322942..c9deccc539ce9e1ea13595591e593bf613dc5ca9 100644 (file)
@@ -26,7 +26,7 @@ namespace idx {
   class TranslationUnit; 
 }
 
-namespace GR {
+namespace ento {
 
 class AnalysisManager : public BugReporterData {
   AnalysisContextManager AnaCtxMgr;
index c310408ff8defda567516c80f53b860c1486d49c..0a692ba9d6bbeca452fa278cda31748b2327ec58 100644 (file)
@@ -24,7 +24,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
   class GRState;
 
index 071ccb09eeaf3d74c955efb59b00330675d56ddf..7d0fdfb5f11f925ec38b0069d6b2b76c27a972a3 100644 (file)
@@ -24,7 +24,7 @@ namespace clang {
 
 class StackFrameContext;
 
-namespace GR {
+namespace ento {
 
 class BlockCounter {
   void* Data;
index c1cac5776c808f9d2c328465bc0bd3b9fc8cbb51..73fb37fc4ceb9095823d58f4478d4472693c0447 100644 (file)
@@ -24,7 +24,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class CheckerContext {
   ExplodedNodeSet &Dst;
index 7afd67d9296ae3bd3ceac4814c201426d6c983c8..005e0e586396520248e5a2bb74df145d8d92624b 100644 (file)
@@ -18,7 +18,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 bool containsMacro(const Stmt *S);
 bool containsEnum(const Stmt *S);
index 26f85d7232560919d1ed7e96a9dc506e1e205fe9..18ffa9fad30c094055b041a1ea870edaebf18645 100644 (file)
@@ -17,7 +17,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 //===----------------------------------------------------------------------===//
 // Checker visitor interface.  Used by subclasses of Checker to specify their
index 0cc023f5a1631830c78186d343c26e9b2323b68f..3e73f4b225dfe256fbe4c96e80b570ebdcd22e48 100644 (file)
@@ -23,7 +23,7 @@ class APSInt;
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class GRState;
 class GRStateManager;
index c66d0ba907546210d9fde7af177918e5e24f75d4..eaaff521606c087d9085d9e8ffce7ce2339f3582 100644 (file)
@@ -24,7 +24,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 //===----------------------------------------------------------------------===//
 /// CoreEngine - Implements the core logic of the graph-reachability
index 36f26e01e4557f242e7f1b3b59d59d21dbf31dbb..a8861cc0c2a2dfda94bc9d49d2075e762aec4827 100644 (file)
@@ -22,7 +22,7 @@ namespace clang {
 
 class LiveVariables;
 
-namespace GR {
+namespace ento {
 
 class EnvironmentManager;
 class SValBuilder;
index a185a13b3aa7aaf5f82aa2f7a2d32334d75aeb98..7f8c4c60c4c914c963b88b634c6154a14bd2c10b 100644 (file)
@@ -36,7 +36,7 @@ namespace clang {
 
 class CFG;
 
-namespace GR {
+namespace ento {
 
 class GRState;
 class ExplodedGraph;
@@ -378,8 +378,8 @@ public:
 // GraphTraits
 
 namespace llvm {
-  template<> struct GraphTraits<clang::GR::ExplodedNode*> {
-    typedef clang::GR::ExplodedNode NodeType;
+  template<> struct GraphTraits<clang::ento::ExplodedNode*> {
+    typedef clang::ento::ExplodedNode NodeType;
     typedef NodeType::succ_iterator  ChildIteratorType;
     typedef llvm::df_iterator<NodeType*>      nodes_iterator;
 
@@ -404,8 +404,8 @@ namespace llvm {
     }
   };
 
-  template<> struct GraphTraits<const clang::GR::ExplodedNode*> {
-    typedef const clang::GR::ExplodedNode NodeType;
+  template<> struct GraphTraits<const clang::ento::ExplodedNode*> {
+    typedef const clang::ento::ExplodedNode NodeType;
     typedef NodeType::const_succ_iterator   ChildIteratorType;
     typedef llvm::df_iterator<NodeType*>       nodes_iterator;
 
index c61c251e12907f8fceaf4de2fb7702b95968fed8..ed06b27f3054eb846e13272649c81743288adedf 100644 (file)
@@ -31,7 +31,7 @@ namespace clang {
 
 class ObjCForCollectionStmt;
 
-namespace GR {
+namespace ento {
 
 class AnalysisManager;
 class Checker;
index e6af5a821502aafb5ea218623f752c101823dd84..b3ccc299413f70169ccc3131f1949e55a1cad0b5 100644 (file)
@@ -19,7 +19,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class StmtNodeBuilderRef {
   ExplodedNodeSet &Dst;
index f540fd2ee253868f793c978ce8c501699e7694c0..914dadbdbd87365f2ce08f4369b42a436a185658 100644 (file)
@@ -31,7 +31,7 @@ class raw_ostream;
 namespace clang {
 class ASTContext;
 
-namespace GR {
+namespace ento {
 
 class GRStateManager;
 class Checker;
index 5c17392ff459e9c58023f4b32795fc9cdeffbfde..914625a285662542ba49b4a16410a3495af20edc 100644 (file)
@@ -27,7 +27,7 @@ namespace llvm {
 
 namespace clang {
 
-namespace GR {
+namespace ento {
   template <typename T> struct GRStatePartialTrait;
 
   // Partial-specialization for ImmutableMap.
index 59e806074babe8fb1ef631d80cd00960b14f60f8..20e25cf44a656142732f4aa6eb915dbbefbb0091 100644 (file)
@@ -34,7 +34,7 @@ namespace clang {
 class LocationContext;
 class StackFrameContext;
 
-namespace GR {
+namespace ento {
 
 class MemRegionManager;
 class MemSpaceRegion;
@@ -1068,7 +1068,7 @@ inline ASTContext& MemRegion::getContext() const {
 
 namespace llvm {
 static inline raw_ostream& operator<<(raw_ostream& os,
-                                      const clang::GR::MemRegion* R) {
+                                      const clang::ento::MemRegion* R) {
   R->dumpToStream(os);
   return os;
 }
index 95780254e34041fc7871292cb8066dc8644a5480..b01f4305ef9c3a0655fc14efe8d005a5a01a6940 100644 (file)
@@ -23,7 +23,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class GRState;
 
index 20814619e11e5c1997fa919d31b8a8d232012b25..617b3948b75470d07b95aaaa2d600ce285e09048 100644 (file)
@@ -29,7 +29,7 @@ namespace llvm {
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class CompoundValData;
 class LazyCompoundValData;
@@ -342,7 +342,7 @@ public:
 };
 
 class LocAsInteger : public NonLoc {
-  friend class GR::SValBuilder;
+  friend class ento::SValBuilder;
 
   explicit LocAsInteger(const std::pair<SVal, uintptr_t>& data) :
     NonLoc(LocAsIntegerKind, &data) {
@@ -376,7 +376,7 @@ public:
 };
 
 class CompoundVal : public NonLoc {
-  friend class GR::SValBuilder;
+  friend class ento::SValBuilder;
 
   explicit CompoundVal(const CompoundValData* D) : NonLoc(CompoundValKind, D) {}
 
@@ -399,7 +399,7 @@ public:
 };
 
 class LazyCompoundVal : public NonLoc {
-  friend class GR::SValBuilder;
+  friend class ento::SValBuilder;
 
   explicit LazyCompoundVal(const LazyCompoundValData *D)
     : NonLoc(LazyCompoundValKind, D) {}
@@ -419,7 +419,7 @@ public:
   }
 };
 
-} // end namespace GR::nonloc
+} // end namespace ento::nonloc
 
 //==------------------------------------------------------------------------==//
 //  Subclasses of Loc.
@@ -505,14 +505,14 @@ public:
   }
 };
 
-} // end GR::loc namespace
+} // end ento::loc namespace
 } // end GR namespace
 
 } // end clang namespace
 
 namespace llvm {
 static inline llvm::raw_ostream& operator<<(llvm::raw_ostream& os,
-                                            clang::GR::SVal V) {
+                                            clang::ento::SVal V) {
   V.dumpToStream(os);
   return os;
 }
index 446ea080fde9a93efb8304debeea46e6b9f73570..f82959b7dad0ed2e20ae5514ca3194b5aeeb997e 100644 (file)
@@ -26,7 +26,7 @@ class Expr;
 class ObjCIvarDecl;
 class StackFrameContext;
 
-namespace GR {
+namespace ento {
 
 /// Store - This opaque type encapsulates an immutable mapping from
 ///  locations to values.  At a high-level, it represents the symbolic
index 0539e7a4f779d293e42349184263f7395b21b58f..755dff703e8342f660c551848f1e59e77a4f7af0 100644 (file)
@@ -22,7 +22,7 @@ class CFGElement;
 class LocationContext;
 class Stmt;
 
-namespace GR {
+namespace ento {
 
 class AnalysisManager;
 class ExplodedNode;
index 8f01ce27cae4c7502af34a6616116d22dbb620c0..ed878515988a869f49ea5fb65bf52af8baacd15c 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 namespace summMgr {
 
index cab35057b042519ea0f0671253e16f788a4f0d29..ad173bb43536b9ddca0b7b76123758771d18cecb 100644 (file)
@@ -31,7 +31,7 @@ namespace clang {
   class ASTContext;
   class StackFrameContext;
 
-namespace GR {
+namespace ento {
   class BasicValueFactory;
   class MemRegion;
   class SubRegion;
@@ -481,7 +481,7 @@ public:
 
 namespace llvm {
 static inline llvm::raw_ostream& operator<<(llvm::raw_ostream& os,
-                                            const clang::GR::SymExpr *SE) {
+                                            const clang::ento::SymExpr *SE) {
   SE->dumpToStream(os);
   return os;
 }
index 10f46c440c2c5292056c46e15ac6c80695d08b1f..c73a33d160f4da7f77d377daf30466adbbb51b98 100644 (file)
@@ -22,7 +22,7 @@
 namespace clang {
 class ObjCMessageExpr;
 
-namespace GR {
+namespace ento {
 class ExplodedNode;
 class ExplodedNodeSet;
 class EndPathNodeBuilder;
index 6e354008cc4324c1ac7c59b94e3ce0cd0441bb13..132bcf6e0bd1dd67b3fbc676a8f8415d2c0bd752 100644 (file)
@@ -22,7 +22,7 @@ namespace clang {
   
 class CFGBlock;
 
-namespace GR {
+namespace ento {
 
 class ExplodedNode;
 class ExplodedNodeImpl;
index 5fb58de2f74ae8cc84097a45bfe539465e692846..2c263cadadabc39afc51a0b1ac8fe31c1273bf39 100644 (file)
@@ -18,7 +18,7 @@
 #include "llvm/ADT/StringExtras.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 using llvm::StringRef;
 
index 84bebf5526228766f6d58be66989398ece194f5f..ae6194beb8581a04e16f2adce25112ca637761b7 100644 (file)
@@ -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();
   }
 }
index 45022986de7cbc979562758c6be65436d71fc002..af30c56974a9241cfdb0ce169ea625eee95a66bd 100644 (file)
@@ -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
index b0942e1bb6a3c943afc925ddb5aa38fd8ede462b..767ae4ab75d2302f598da5ca0583457b7997e114 100644 (file)
@@ -12,7 +12,7 @@
 #include "clang/Index/Indexer.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 AnalysisContext *
 AnalysisManager::getAnalysisContextInAnotherTU(const Decl *D) {
index c60b4504b2a6e2d94949faf7aef97531e18fcd82..fa8ae59894b12f99d1c634c9ab3a53e87d231b51 100644 (file)
@@ -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());
 }
 
index 2de0d9a23cc44657d568939fe577489cf27d1410..da91f5c98554bfbc5db38c80a2cfd09bc55bc8f5 100644 (file)
@@ -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);
 }
index 1c8ab11a96b685c1041f9c63ca75385c57dbd8e8..9eb8d79ce4aa1651e09fee2df0e38608848118f1 100644 (file)
@@ -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);
 }
 
index 7e45a15a9c0a41b16aebfa8a51b2ec6e64322107..8e51361e00ceafe6b2133bdf3185b58bb582f481 100644 (file)
@@ -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) {
index ee76e7a2bc1db71db0cbe65eca621d2a894bdc8f..dadf707cf2fcdb55896a8d9af28848e38c036ef7 100644 (file)
@@ -17,7 +17,7 @@
 #include "llvm/ADT/ImmutableMap.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
index dedbd702bc8f682635b176103c02e94f813b1e9a..769e2b9c4d88122c74e58e233582b169989b2b18 100644 (file)
@@ -30,7 +30,7 @@
 #include <queue>
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 BugReporterVisitor::~BugReporterVisitor() {}
 BugReporterContext::~BugReporterContext() {
index f56d0538325c3d4f66dc8a8e7e85ed65de1f8ed9..78b5ad66ab97e808735030f18a33eafc5f4c5dac 100644 (file)
@@ -20,7 +20,7 @@
 #include "clang/GR/PathSensitive/GRState.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 //===----------------------------------------------------------------------===//
 // Utility functions.
index a99019cf373b63584262808f82f54aae69bead70..2fe6b18c6d6d2b45865597efc058588cdde1bf4c 100644 (file)
@@ -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);
 }
index b1111c90fe503167e3be587ad008fd2aceeb3b49..eee90f2b21159e1c70f729b76a7ba706630e0722 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/AST/DeclCXX.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class CallExprWLItem {
index 521d9e2b7db1df8468d18b4dd068172377a4bc5b..975d8475bcd73c80c69fa2e4dd2aae17c292935a 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "clang/GR/PathSensitive/Checker.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 Checker::~Checker() {}
 
index 23144a300e20698a645d4adb66e23ea479681534..81e83399ed28dd052bf3a13cf7d97708f197ab05 100644 (file)
@@ -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;
 
index 3c78b39d207793e8583bb06515b3126a71dc7ef7..d4e5389f8567149433f6142c5c7f8e3fef0108d9 100644 (file)
@@ -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());
 }
 
index 28a260c3e364cb586ed796c2a5ae12e579fd40db..f70de0596b7bebb47b564eeec50d2ba637f8300a 100644 (file)
@@ -43,7 +43,7 @@
 #include "llvm/ADT/OwningPtr.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 static ExplodedNode::Auditor* CreateUbiViz();
 
@@ -477,7 +477,7 @@ static void ActionWarnSizeofPointer(AnalysisConsumer &C, AnalysisManager &mgr,
 // AnalysisConsumer creation.
 //===----------------------------------------------------------------------===//
 
-ASTConsumer* GR::CreateAnalysisConsumer(const Preprocessor& pp,
+ASTConsumer* ento::CreateAnalysisConsumer(const Preprocessor& pp,
                                            const std::string& OutDir,
                                            const AnalyzerOptions& Opts) {
   llvm::OwningPtr<AnalysisConsumer> C(new AnalysisConsumer(pp, OutDir, Opts));
index 9dc53a2360b96d879ec38539645e41dba7486c71..9d4e3c4fd962ec757e747d03c512eea34d7ee1f2 100644 (file)
@@ -18,7 +18,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class ArrayBoundChecker : 
@@ -31,7 +31,7 @@ public:
 };
 }
 
-void GR::RegisterArrayBoundChecker(ExprEngine &Eng) {
+void ento::RegisterArrayBoundChecker(ExprEngine &Eng) {
   Eng.registerCheck(new ArrayBoundChecker());
 }
 
index 9a672087bc5fd1700db48c85b021dce314bc2550..1753ac52a8050b3316204f565dc5f0233900e153 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/AST/CharUnits.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class ArrayBoundCheckerV2 : 
@@ -62,7 +62,7 @@ public:
 };
 }
 
-void GR::RegisterArrayBoundCheckerV2(ExprEngine &Eng) {
+void ento::RegisterArrayBoundCheckerV2(ExprEngine &Eng) {
   Eng.registerCheck(new ArrayBoundCheckerV2());
 }
 
index 74eb882d545c2ef9e76ad4d9091da5527c838708..5c2aede8159d84f43a8e10fa76c5b24f2dc0d69d 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class AttrNonNullChecker
@@ -33,7 +33,7 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterAttrNonNullChecker(ExprEngine &Eng) {
+void ento::RegisterAttrNonNullChecker(ExprEngine &Eng) {
   Eng.registerCheck(new AttrNonNullChecker());
 }
 
index 33a58bdec9ab76cb8bba8a425781a39ad90ecbf3..a172477bd69ea8e3dfcc1e2cec2479e8d035bde4 100644 (file)
@@ -29,7 +29,7 @@
 #include "clang/AST/ASTContext.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class APIMisuse : public BugType {
@@ -511,7 +511,7 @@ void ClassReleaseChecker::PreVisitObjCMessageExpr(CheckerContext &C,
 // Check registration.
 //===----------------------------------------------------------------------===//
   
-void GR::RegisterAppleChecks(ExprEngine& Eng, const Decl &D) {
+void ento::RegisterAppleChecks(ExprEngine& Eng, const Decl &D) {
   Eng.registerCheck(new NilArgChecker());
   Eng.registerCheck(new CFNumberCreateChecker());
   RegisterNSErrorChecks(Eng.getBugReporter(), Eng, D);
index 63143ebe252620d358fecab3f7a764adb6afc3c3..f4966e8ae838867db6dae2da23680661a442b9d7 100644 (file)
@@ -21,7 +21,7 @@ namespace clang {
 class ASTContext;
 class Decl;
 
-namespace GR {
+namespace ento {
 
 class BugReporter;
 class ExprEngine;
index 27162e40af9ddd88858e4a398a5a616d2f7d432b..697f0a4c00095988126aa07f703ce594bf6ec6ec 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/Basic/Builtins.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -28,7 +28,7 @@ public:
 
 }
 
-void GR::RegisterBuiltinFunctionChecker(ExprEngine &Eng) {
+void ento::RegisterBuiltinFunctionChecker(ExprEngine &Eng) {
   Eng.registerCheck(new BuiltinFunctionChecker());
 }
 
index a9d3064fcaf0bcabf8036cf10523ed5ace3231fd..d658c2f3dddf30ccfc7e8a947ef30d496bbc02a3 100644 (file)
@@ -19,7 +19,7 @@
 #include "llvm/ADT/StringSwitch.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class CStringChecker : public CheckerVisitor<CStringChecker> {
@@ -100,7 +100,7 @@ public:
 } //end anonymous namespace
 
 namespace clang {
-namespace GR {
+namespace ento {
   template <>
   struct GRStateTrait<CStringLength> 
     : public GRStatePartialTrait<CStringLength::EntryMap> {
@@ -109,7 +109,7 @@ namespace GR {
 }
 }
 
-void GR::RegisterCStringChecker(ExprEngine &Eng) {
+void ento::RegisterCStringChecker(ExprEngine &Eng) {
   Eng.registerCheck(new CStringChecker());
 }
 
index f3306d136bc0c7b544125f585b7d7fcd78ac77c4..24fc20ef13aead8294f2297e5d4c8c8172287ece 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class CallAndMessageChecker
@@ -62,7 +62,7 @@ private:
 };
 } // end anonymous namespace
 
-void GR::RegisterCallAndMessageChecker(ExprEngine &Eng) {
+void ento::RegisterCallAndMessageChecker(ExprEngine &Eng) {
   Eng.registerCheck(new CallAndMessageChecker());
 }
 
index c17dc7a266e90dde04a615956aa2f326bca29247..7844f51f068341ddf79f8408935d6aec6a04a026 100644 (file)
@@ -17,7 +17,7 @@
 #include "ExprEngineInternalChecks.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class CastSizeChecker : public CheckerVisitor<CastSizeChecker> {
@@ -86,6 +86,6 @@ void CastSizeChecker::PreVisitCastExpr(CheckerContext &C, const CastExpr *CE) {
 }
 
 
-void GR::RegisterCastSizeChecker(ExprEngine &Eng) {
+void ento::RegisterCastSizeChecker(ExprEngine &Eng) {
   Eng.registerCheck(new CastSizeChecker());
 }
index 7b0732938c190495d0f13f5877eff54aeb100118..236623fc4a3186fd0bdf0429325a9648ee8817c5 100644 (file)
@@ -18,7 +18,7 @@
 #include "ExprEngineInternalChecks.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class CastToStructChecker 
@@ -74,6 +74,6 @@ void CastToStructChecker::PreVisitCastExpr(CheckerContext &C,
   }
 }
 
-void GR::RegisterCastToStructChecker(ExprEngine &Eng) {
+void ento::RegisterCastToStructChecker(ExprEngine &Eng) {
   Eng.registerCheck(new CastToStructChecker());
 }
index edcf57ceca203e3aee7b684e3e10c30ab2b9012d..d2ffd6acb47aacf419564005b2ea47449f014d98 100644 (file)
@@ -24,7 +24,7 @@
 #include "llvm/ADT/SmallPtrSet.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -281,7 +281,7 @@ public:
 } // end anonymous namespace
 
 
-void GR::CheckDeadStores(CFG &cfg, LiveVariables &L, ParentMap &pmap, 
+void ento::CheckDeadStores(CFG &cfg, LiveVariables &L, ParentMap &pmap, 
                             BugReporter& BR) {
   FindEscaped FS(&cfg);
   FS.getCFG().VisitBlockStmts(FS);
index f8ec7f6edab7550c4f54c7272a9222b7fc7a0b99..1aa024928219b707d0f483f3eabc0ee2a5868d48 100644 (file)
@@ -23,7 +23,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 static bool scan_dealloc(Stmt* S, Selector Dealloc) {
 
@@ -94,7 +94,7 @@ static bool scan_ivar_release(Stmt* S, ObjCIvarDecl* ID,
   return false;
 }
 
-void GR::CheckObjCDealloc(const ObjCImplementationDecl* D,
+void ento::CheckObjCDealloc(const ObjCImplementationDecl* D,
                           const LangOptions& LOpts, BugReporter& BR) {
 
   assert (LOpts.getGCMode() != LangOptions::GCOnly);
index b2be375f1076a5042c4b6191a665aa2219333ea2..62c5e600054e37b8192b74c66d9d9e9c799e87d5 100644 (file)
@@ -24,7 +24,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 static bool AreTypesCompatible(QualType Derived, QualType Ancestor,
                                ASTContext& C) {
@@ -70,7 +70,7 @@ static void CompareReturnTypes(const ObjCMethodDecl *MethDerived,
   }
 }
 
-void GR::CheckObjCInstMethSignature(const ObjCImplementationDecl* ID,
+void ento::CheckObjCInstMethSignature(const ObjCImplementationDecl* ID,
                                     BugReporter& BR) {
 
   const ObjCInterfaceDecl* D = ID->getClassInterface();
index ea658e39844b5134323d801cfefed5034e98904e..bdb03f8038cfbd9dbbe40d342e790a5bbfb5491b 100644 (file)
@@ -18,7 +18,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 static bool isArc4RandomAvailable(const ASTContext &Ctx) {
   const llvm::Triple &T = Ctx.Target.getTriple();
@@ -497,7 +497,7 @@ void WalkAST::CheckUncheckedReturnValue(CallExpr *CE) {
 // Entry point for check.
 //===----------------------------------------------------------------------===//
 
-void GR::CheckSecuritySyntaxOnly(const Decl *D, BugReporter &BR) {
+void ento::CheckSecuritySyntaxOnly(const Decl *D, BugReporter &BR) {
   WalkAST walker(BR);
   walker.Visit(D->getBody());
 }
index 696dce2941ddc072f7589625b9bf46343d5e2bb4..3a2e8c7b50b9eb070cca2d0d988e20865d30dbef 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/Checkers/LocalCheckers.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class WalkAST : public StmtVisitor<WalkAST> {
@@ -66,7 +66,7 @@ void WalkAST::VisitSizeOfAlignOfExpr(SizeOfAlignOfExpr *E) {
   }
 }
 
-void GR::CheckSizeofPointer(const Decl *D, BugReporter &BR) {
+void ento::CheckSizeofPointer(const Decl *D, BugReporter &BR) {
   WalkAST walker(BR);
   walker.Visit(D->getBody());
 }
index 58b34d08520f1c325b2c05fa282c5a839fbb18ff..6a36593894435bf3ed366bc2a07eecad66f35269 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/GR/PathSensitive/SymbolManager.h"
 #include "llvm/ADT/ImmutableMap.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -59,7 +59,7 @@ private:
 
 } // end anonymous namespace
 
-void GR::RegisterChrootChecker(ExprEngine &Eng) {
+void ento::RegisterChrootChecker(ExprEngine &Eng) {
   Eng.registerCheck(new ChrootChecker());
 }
 
index dbe0ab3262e4d7509709dad5a5ec00b907c340c6..cecea57192415ad0fc08941e1353b4eb62554b28 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class DereferenceChecker : public Checker {
@@ -43,12 +43,12 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterDereferenceChecker(ExprEngine &Eng) {
+void ento::RegisterDereferenceChecker(ExprEngine &Eng) {
   Eng.registerCheck(new DereferenceChecker());
 }
 
 std::pair<ExplodedNode * const *, ExplodedNode * const *>
-GR::GetImplicitNullDereferences(ExprEngine &Eng) {
+ento::GetImplicitNullDereferences(ExprEngine &Eng) {
   DereferenceChecker *checker = Eng.getChecker<DereferenceChecker>();
   if (!checker)
     return std::make_pair((ExplodedNode * const *) 0,
index 1475a9e1cd3618c39d2e14f4ca558278c979b088..2119a0ca2f6b3a125a3d4d2289417b12a323d0fa 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class DivZeroChecker : public CheckerVisitor<DivZeroChecker> {
@@ -29,7 +29,7 @@ public:
 };  
 } // end anonymous namespace
 
-void GR::RegisterDivZeroChecker(ExprEngine &Eng) {
+void ento::RegisterDivZeroChecker(ExprEngine &Eng) {
   Eng.registerCheck(new DivZeroChecker());
 }
 
index 6e82504f374c037d17ad92e61aca8f8b11e4cc7f..2ff665c9416d2418c6a3b0239479af08c62c9d4a 100644 (file)
@@ -37,7 +37,7 @@
 #endif
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::dyn_cast;
 using llvm::dyn_cast_or_null;
 using llvm::cast;
index d7ad99ffc22680ff895f8514497140539d48e5c4..9f3c04ae917e99e813592e27614bc17f929f4315 100644 (file)
@@ -17,9 +17,9 @@
 #include "clang/GR/Checkers/LocalCheckers.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
-void GR::RegisterExperimentalChecks(ExprEngine &Eng) {
+void ento::RegisterExperimentalChecks(ExprEngine &Eng) {
   // These are checks that never belong as internal checks
   // within ExprEngine.
   RegisterCStringChecker(Eng);
@@ -30,7 +30,7 @@ void GR::RegisterExperimentalChecks(ExprEngine &Eng) {
   RegisterUnreachableCodeChecker(Eng);
 }
 
-void GR::RegisterExperimentalInternalChecks(ExprEngine &Eng) {
+void ento::RegisterExperimentalInternalChecks(ExprEngine &Eng) {
   // These are internal checks that should eventually migrate to
   // RegisterInternalChecks() once they have been further tested.
   
index 4a04fb9b2f7f7d53412b04f51661959ca93160ca..f8359d1c5cddda26edb97eabbf40b92311687002 100644 (file)
@@ -17,7 +17,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class ExprEngine;
 
index bfb22f5c9efb79e64014a1934e6505e1ada823eb..f67371da0fcbbfcd19fd12900e44eed0de16f119 100644 (file)
@@ -17,7 +17,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class ExprEngine;
 
index d7caad17dab8eb7619055be1dfeb0f1e211f6539..1d629ee55e95eb55234aec6070be4cc763ec5752 100644 (file)
@@ -18,7 +18,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class FixedAddressChecker 
@@ -67,6 +67,6 @@ void FixedAddressChecker::PreVisitBinaryOperator(CheckerContext &C,
   }
 }
 
-void GR::RegisterFixedAddressChecker(ExprEngine &Eng) {
+void ento::RegisterFixedAddressChecker(ExprEngine &Eng) {
   Eng.registerCheck(new FixedAddressChecker());
 }
index 2097657ca3db8cffd3c3e2f4bd35ffac0e04b4f9..c88378279ae281f2ac9bf6258eb77a503c782fbb 100644 (file)
@@ -11,7 +11,7 @@
 #include "clang/Frontend/CompilerInstance.h"
 #include "clang/GR/AnalysisConsumer.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 ASTConsumer *AnalysisAction::CreateASTConsumer(CompilerInstance &CI,
                                                llvm::StringRef InFile) {
index 15e9be9580405dd60fc85fca3e7fbd85a06d4493..56bb542e923b1c37fd4cc1815b2faff873492ce5 100644 (file)
@@ -58,7 +58,7 @@
 #include <deque>
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class IdempotentOperationChecker
@@ -130,7 +130,7 @@ void *IdempotentOperationChecker::getTag() {
   return &x;
 }
 
-void GR::RegisterIdempotentOperationChecker(ExprEngine &Eng) {
+void ento::RegisterIdempotentOperationChecker(ExprEngine &Eng) {
   Eng.registerCheck(new IdempotentOperationChecker());
 }
 
index 655e7565165f79dab553316a94d36cc9ebc10407..864dd850937ba3b3d5ad89719d65e08802554c0c 100644 (file)
@@ -20,7 +20,7 @@
 #include "llvm/ADT/StringRef.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 //===----------------------------------------------------------------------===//
 // Generic type checking routines.
@@ -306,7 +306,7 @@ static void ScanCodeDecls(DeclContext *DC, BugReporter &BR) {
   }
 }
 
-void GR::CheckLLVMConventions(TranslationUnitDecl &TU,
+void ento::CheckLLVMConventions(TranslationUnitDecl &TU,
                                  BugReporter &BR) {
   ScanCodeDecls(&TU, BR);
 }
index d7728713f885917b707d9133783731639d2d16c7..5934c5ffbf23fe51c12038ce58aec42cebeb644b 100644 (file)
@@ -25,7 +25,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class MacOSXAPIChecker : public CheckerVisitor<MacOSXAPIChecker> {
@@ -45,7 +45,7 @@ public:
 };
 } //end anonymous namespace
 
-void GR::RegisterMacOSXAPIChecker(ExprEngine &Eng) {
+void ento::RegisterMacOSXAPIChecker(ExprEngine &Eng) {
   if (Eng.getContext().Target.getTriple().getVendor() == llvm::Triple::Apple)
     Eng.registerCheck(new MacOSXAPIChecker());
 }
index bbfc7b076d316cc8ce9aaadfe6f2f12933ab1c63..a4d317f8b056adc90e935c5189c5620d431382f5 100644 (file)
@@ -20,7 +20,7 @@
 #include "clang/GR/PathSensitive/SymbolManager.h"
 #include "llvm/ADT/ImmutableMap.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -117,7 +117,7 @@ private:
 typedef llvm::ImmutableMap<SymbolRef, RefState> RegionStateTy;
 
 namespace clang {
-namespace GR {
+namespace ento {
   template <>
   struct GRStateTrait<RegionState> 
     : public GRStatePartialTrait<RegionStateTy> {
@@ -126,7 +126,7 @@ namespace GR {
 }
 }
 
-void GR::RegisterMallocChecker(ExprEngine &Eng) {
+void ento::RegisterMallocChecker(ExprEngine &Eng) {
   Eng.registerCheck(new MallocChecker());
 }
 
index beb4a81743b7b92f3208fed05df4d65da866f8a9..c93121fcd93e870ac8a875b33f573e78f1bb1b38 100644 (file)
@@ -23,7 +23,7 @@
 #include "clang/AST/Decl.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class NSAutoreleasePoolChecker
@@ -45,7 +45,7 @@ public:
 } // end anonymous namespace
 
 
-void GR::RegisterNSAutoreleasePoolChecks(ExprEngine &Eng) {
+void ento::RegisterNSAutoreleasePoolChecks(ExprEngine &Eng) {
   ASTContext &Ctx = Eng.getContext();
   if (Ctx.getLangOptions().getGCMode() != LangOptions::NonGC) {    
     Eng.registerCheck(new NSAutoreleasePoolChecker(GetNullarySelector("release",
index 3cfb044d6f89304f6bd510fd19a6b728167d785d..ee3f901ad5306fd6b5a3e4fca4e166dd58b209ea 100644 (file)
@@ -25,7 +25,7 @@
 #include "llvm/ADT/SmallVector.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class NSErrorChecker : public BugType {
@@ -63,7 +63,7 @@ public:
 
 } // end anonymous namespace
 
-void GR::RegisterNSErrorChecks(BugReporter& BR, ExprEngine &Eng,
+void ento::RegisterNSErrorChecks(BugReporter& BR, ExprEngine &Eng,
                                   const Decl &D) {
   BR.Register(new NSErrorChecker(D, true, Eng));
   BR.Register(new NSErrorChecker(D, false, Eng));
index f6d33dbda8dae8ac2b47ef8ae9f0fda8d4edf24e..ad86ac500d8003fb6c743db94fc94a6a2a1383eb 100644 (file)
@@ -17,7 +17,7 @@
 #include "llvm/ADT/StringSwitch.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -29,7 +29,7 @@ public:
 
 }
 
-void GR::RegisterNoReturnFunctionChecker(ExprEngine &Eng) {
+void ento::RegisterNoReturnFunctionChecker(ExprEngine &Eng) {
   Eng.registerCheck(new NoReturnFunctionChecker());
 }
 
index c27e50880e1be03177d612ea77a3a3c077112202..3d230ce76e7f6d93c617c2da138415610c5a9428 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/Basic/Builtins.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -31,7 +31,7 @@ private:
 
 }
 
-void GR::RegisterOSAtomicChecker(ExprEngine &Eng) {
+void ento::RegisterOSAtomicChecker(ExprEngine &Eng) {
   Eng.registerCheck(new OSAtomicChecker());
 }
 
index 40619a2a85326d36be74bc7252613ab322b4d57d..b44fae8b6c949b959c313f3c3143150b312b4251 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class ObjCAtSyncChecker : public CheckerVisitor<ObjCAtSyncChecker> {
@@ -33,7 +33,7 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterObjCAtSyncChecker(ExprEngine &Eng) {
+void ento::RegisterObjCAtSyncChecker(ExprEngine &Eng) {
   // @synchronized is an Objective-C 2 feature.
   if (Eng.getContext().getLangOptions().ObjC2)
     Eng.registerCheck(new ObjCAtSyncChecker());
index 611914fbc0090f5557802c0efa5bc0670d056274..177f6a22679e2294ef664b532a75facc4bc0edfa 100644 (file)
@@ -23,7 +23,7 @@
 #include "clang/Basic/SourceManager.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 enum IVarState { Unused, Used };
 typedef llvm::DenseMap<const ObjCIvarDecl*,IVarState> IvarUsageMap;
@@ -98,7 +98,7 @@ static void Scan(IvarUsageMap &M, const DeclContext *C, const FileID FID,
     }
 }
 
-void GR::CheckObjCUnusedIvar(const ObjCImplementationDecl *D,
+void ento::CheckObjCUnusedIvar(const ObjCImplementationDecl *D,
                                 BugReporter &BR) {
 
   const ObjCInterfaceDecl* ID = D->getClassInterface();
index 1f870052c161aa6d3aa757c40ba02669c81864fb..f40eeec52f5ef87a9c03ba39a7843f6840a3f55d 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class PointerArithChecker 
@@ -67,6 +67,6 @@ void PointerArithChecker::PreVisitBinaryOperator(CheckerContext &C,
   }
 }
 
-void GR::RegisterPointerArithChecker(ExprEngine &Eng) {
+void ento::RegisterPointerArithChecker(ExprEngine &Eng) {
   Eng.registerCheck(new PointerArithChecker());
 }
index 57ab31803ce080bc9fbbf435be8f6daae600f612..63aa90429e96b3e5d85c3f3cdd4a27ebcf279403 100644 (file)
@@ -18,7 +18,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class PointerSubChecker 
@@ -74,6 +74,6 @@ void PointerSubChecker::PreVisitBinaryOperator(CheckerContext &C,
   }
 }
 
-void GR::RegisterPointerSubChecker(ExprEngine &Eng) {
+void ento::RegisterPointerSubChecker(ExprEngine &Eng) {
   Eng.registerCheck(new PointerSubChecker());
 }
index ae58b78fb8a11e897d1b76627fec1c7da543b7de..517f6b15ab7b8220a2a14f40ee878969d9e8201f 100644 (file)
@@ -19,7 +19,7 @@
 #include "llvm/ADT/ImmutableSet.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class PthreadLockChecker
@@ -45,7 +45,7 @@ public:
 // GDM Entry for tracking lock state.
 namespace { class LockSet {}; }
 namespace clang {
-namespace GR {
+namespace ento {
 template <> struct GRStateTrait<LockSet> :
   public GRStatePartialTrait<llvm::ImmutableSet<const MemRegion*> > {
     static void* GDMIndex() { return PthreadLockChecker::getTag(); }
@@ -53,7 +53,7 @@ template <> struct GRStateTrait<LockSet> :
 } // end GR namespace
 } // end clang namespace
 
-void GR::RegisterPthreadLockChecker(ExprEngine &Eng) {
+void ento::RegisterPthreadLockChecker(ExprEngine &Eng) {
   Eng.registerCheck(new PthreadLockChecker());
 }
 
index 4ef5737f3546d1ea2e58969bf2637908a9bb99e9..80316f58c10f12285f22c2ed9b5a5c6c8fc35d06 100644 (file)
@@ -18,7 +18,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class ReturnPointerRangeChecker : 
@@ -31,7 +31,7 @@ public:
 };
 }
 
-void GR::RegisterReturnPointerRangeChecker(ExprEngine &Eng) {
+void ento::RegisterReturnPointerRangeChecker(ExprEngine &Eng) {
   Eng.registerCheck(new ReturnPointerRangeChecker());
 }
 
index 2a1027a9301c633c4746ea4ac6b13c402c33170e..17a2a55ebd965c23d7972eb242d260ee05a8e5ac 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class ReturnUndefChecker : 
@@ -32,7 +32,7 @@ public:
 };
 }
 
-void GR::RegisterReturnUndefChecker(ExprEngine &Eng) {
+void ento::RegisterReturnUndefChecker(ExprEngine &Eng) {
   Eng.registerCheck(new ReturnUndefChecker());
 }
 
index 3ef78a46fb1b58f79b671e6ae126dfe8147ecfcd..229356ad6791d5ff32a28703bc957d4de926256c 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/Basic/SourceManager.h"
 #include "llvm/ADT/SmallString.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class StackAddrLeakChecker : public CheckerVisitor<StackAddrLeakChecker> {
@@ -41,7 +41,7 @@ private:
 };
 }
 
-void GR::RegisterStackAddrLeakChecker(ExprEngine &Eng) {
+void ento::RegisterStackAddrLeakChecker(ExprEngine &Eng) {
   Eng.registerCheck(new StackAddrLeakChecker());
 }
 
index 73c2920ad9433740daf771b2b25db371de74a6d4..32e22b04198e96001ce8a2c9cff46ea2e4335235 100644 (file)
@@ -20,7 +20,7 @@
 #include "llvm/ADT/ImmutableMap.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -105,7 +105,7 @@ private:
 } // end anonymous namespace
 
 namespace clang {
-namespace GR {
+namespace ento {
   template <>
   struct GRStateTrait<StreamState> 
     : public GRStatePartialTrait<llvm::ImmutableMap<SymbolRef, StreamState> > {
@@ -114,7 +114,7 @@ namespace GR {
 }
 }
 
-void GR::RegisterStreamChecker(ExprEngine &Eng) {
+void ento::RegisterStreamChecker(ExprEngine &Eng) {
   Eng.registerCheck(new StreamChecker());
 }
 
index e999d8bc13212046720d747f4ade423c3756e74f..fc668be35caf926b09e60227bf134e787e838354 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/PathSensitive/Checker.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 
@@ -56,7 +56,7 @@ public:
 
 }
 
-void GR::RegisterUndefBranchChecker(ExprEngine &Eng) {
+void ento::RegisterUndefBranchChecker(ExprEngine &Eng) {
   Eng.registerCheck(new UndefBranchChecker());
 }
 
index 2b45c95843e3935c9b8ef39e077eab5a416926fe..8ceda3ddc5c6d323081ea572a88caa85cc6b9923 100644 (file)
@@ -18,7 +18,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class UndefCapturedBlockVarChecker
@@ -32,7 +32,7 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterUndefCapturedBlockVarChecker(ExprEngine &Eng) {
+void ento::RegisterUndefCapturedBlockVarChecker(ExprEngine &Eng) {
   Eng.registerCheck(new UndefCapturedBlockVarChecker());
 }
 
index 348573d21c6e4ebc304f0121841b77fabebdf633..3d4faa2988e18b63ce942d9e655f4ceadc75b3ac 100644 (file)
@@ -18,7 +18,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class UndefResultChecker 
@@ -33,7 +33,7 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterUndefResultChecker(ExprEngine &Eng) {
+void ento::RegisterUndefResultChecker(ExprEngine &Eng) {
   Eng.registerCheck(new UndefResultChecker());
 }
 
index 0a3cee43a1275cc29990a5babbd23d9bbbe76876..90f7d5db4197f2445a1ac21fb1dce32ff621c324 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class UndefinedArraySubscriptChecker
@@ -34,7 +34,7 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterUndefinedArraySubscriptChecker(ExprEngine &Eng) {
+void ento::RegisterUndefinedArraySubscriptChecker(ExprEngine &Eng) {
   Eng.registerCheck(new UndefinedArraySubscriptChecker());
 }
 
index fa43350da8ffb3bef30192f5d0359f53a1b2dba1..8addd4458e883e5e75ef73b594172643f066974f 100644 (file)
@@ -17,7 +17,7 @@
 #include "clang/GR/PathSensitive/CheckerVisitor.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class UndefinedAssignmentChecker
@@ -31,7 +31,7 @@ public:
 };
 }
 
-void GR::RegisterUndefinedAssignmentChecker(ExprEngine &Eng){
+void ento::RegisterUndefinedAssignmentChecker(ExprEngine &Eng){
   Eng.registerCheck(new UndefinedAssignmentChecker());
 }
 
index c365e3042dd51919295659cab346999104c04fb1..b9d8b57794aa32d32ec38ca976ac01b158fdfe3b 100644 (file)
@@ -21,7 +21,7 @@
 #include <fcntl.h>
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::Optional;
 
 namespace {
@@ -46,7 +46,7 @@ public:
 };
 } //end anonymous namespace
 
-void GR::RegisterUnixAPIChecker(ExprEngine &Eng) {
+void ento::RegisterUnixAPIChecker(ExprEngine &Eng) {
   Eng.registerCheck(new UnixAPIChecker());
 }
 
index 97a2ff56af127ec64112c0e8a523940bbd31f51b..b52dc87c04e2ee4e6b39e25d987b101ece71939e 100644 (file)
@@ -29,7 +29,7 @@
 #define DEFAULT_CFGBLOCKS 256
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class UnreachableCodeChecker : public Checker {
@@ -54,7 +54,7 @@ void *UnreachableCodeChecker::getTag() {
   return &x;
 }
 
-void GR::RegisterUnreachableCodeChecker(ExprEngine &Eng) {
+void ento::RegisterUnreachableCodeChecker(ExprEngine &Eng) {
   Eng.registerCheck(new UnreachableCodeChecker());
 }
 
index b2ca2db02f2081b11088088b4fb09ed5bccf68ba..d21ad217806a9edbf1dc67fa2e698a747688cd9f 100644 (file)
@@ -21,7 +21,7 @@
 #include "clang/GR/PathSensitive/ExprEngine.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class VLASizeChecker : public CheckerVisitor<VLASizeChecker> {
@@ -35,7 +35,7 @@ public:
 };
 } // end anonymous namespace
 
-void GR::RegisterVLASizeChecker(ExprEngine &Eng) {
+void ento::RegisterVLASizeChecker(ExprEngine &Eng) {
   Eng.registerCheck(new VLASizeChecker());
 }
 
index a086c9123511eecd2f419776d8e8be48e4265d98..3236b92378302f06b767ab84ceef040f54af716b 100644 (file)
 using llvm::cast;
 using llvm::isa;
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 // This should be removed in the future.
 namespace clang {
-namespace GR {
+namespace ento {
 TransferFuncs* MakeCFRefCountTF(ASTContext& Ctx, bool GCEnabled,
                                   const LangOptions& lopts);
 }
index 74ac7f285f486ec3caa52cd74832eb7cfdbafeb5..4961704509c29e86b320b1a0a6f000b5bd6afb9e 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/GR/PathSensitive/GRState.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 SVal Environment::lookupExpr(const Stmt* E) const {
   const SVal* X = ExprBindings.lookup(E);
index fc46813edc3a780ca0206daf75e959a4e681f283..dd206aba0000ae4b0fd64742c69ad1850b2a6720 100644 (file)
@@ -21,7 +21,7 @@
 #include <vector>
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 //===----------------------------------------------------------------------===//
 // Node auditing.
index d4bd4b83c8f418858008b40612df43dbb39d44ef..6809c3b53cdd27db4192abfa5e606a51db02d137 100644 (file)
@@ -12,7 +12,7 @@
 #include "llvm/Support/ErrorHandling.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::Interval;
 
 // The actual store type.
@@ -84,7 +84,7 @@ private:
 };
 } // end anonymous namespace
 
-StoreManager *GR::CreateFlatStoreManager(GRStateManager &StMgr) {
+StoreManager *ento::CreateFlatStoreManager(GRStateManager &StMgr) {
   return new FlatStoreManager(StMgr);
 }
 
index 3a4c15a8dbbb0dfcdbcd19d542df1dfbf39124c1..e531cc9d99bced4df547f154cc5d434932e42b84 100644 (file)
@@ -19,7 +19,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 // Give the vtable for ConstraintManager somewhere to live.
 // FIXME: Move this elsewhere.
index 0c059ffd1f4df8d6a95eef4075f97bed4c2e88d4..72a854a85d290f41d95f531069d7cd0962814d4e 100644 (file)
@@ -26,7 +26,7 @@
 #include "llvm/Support/Path.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 //===----------------------------------------------------------------------===//
 // Boilerplate.
@@ -78,8 +78,8 @@ HTMLDiagnostics::HTMLDiagnostics(const std::string& prefix,
 }
 
 PathDiagnosticClient*
-GR::createHTMLDiagnosticClient(const std::string& prefix,
-                                  const Preprocessor &PP) {
+ento::createHTMLDiagnosticClient(const std::string& prefix,
+                                 const Preprocessor &PP) {
   return new HTMLDiagnostics(prefix, PP);
 }
 
index ab3a0a1ae99887aa51c956eb4088af6bc8ebe270..4058c11f7c8df3b1aaa9cefb05baec5ee8d755ea 100644 (file)
@@ -14,7 +14,7 @@
 #include "clang/GR/ManagerRegistry.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 StoreManagerCreator ManagerRegistry::StoreMgrCreator = 0;
 
index fd8ab6acb121d7b6c68542fd97055624d5ac2ef6..f16223636f68643047253cdbfbc4bd1f4f9daa6a 100644 (file)
@@ -22,7 +22,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 //===----------------------------------------------------------------------===//
 // MemRegion Construction.
index b496560f3cfb30dd21496b00ccdb258302c47bcd..69c660b4a4c4c1a50878b3c535a45df7a8cdb86e 100644 (file)
@@ -20,7 +20,7 @@
 #include "llvm/Support/Casting.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::dyn_cast;
 using llvm::isa;
 
index 35a46bfeede1eb8be185ee9c65aac678cf72a946..ebab2b200295b1cfda2efc0c5c0c081ebeffa646 100644 (file)
@@ -21,7 +21,7 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallVector.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::cast;
 
 typedef llvm::DenseMap<FileID, unsigned> FIDMap;
@@ -98,8 +98,8 @@ PlistDiagnostics::PlistDiagnostics(const std::string& output,
   : OutputFile(output), LangOpts(LO), SubPD(subPD), flushed(false) {}
 
 PathDiagnosticClient*
-GR::createPlistDiagnosticClient(const std::string& s, const Preprocessor &PP,
-                                   PathDiagnosticClient *subPD) {
+ento::createPlistDiagnosticClient(const std::string& s, const Preprocessor &PP,
+                                  PathDiagnosticClient *subPD) {
   return new PlistDiagnostics(s, PP.getLangOptions(), subPD);
 }
 
index 8f8528dbde6430501b1ae08829c55fffd26b7ff7..5ce69bafd14340a82106871b0496d415b2f67529 100644 (file)
@@ -23,7 +23,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace { class ConstraintRange {}; }
 static int ConstraintRangeIndex = 0;
@@ -195,7 +195,7 @@ public:
 typedef llvm::ImmutableMap<SymbolRef,RangeSet> ConstraintRangeTy;
 
 namespace clang {
-namespace GR {
+namespace ento {
 template<>
 struct GRStateTrait<ConstraintRange>
   : public GRStatePartialTrait<ConstraintRangeTy> {
@@ -254,7 +254,7 @@ private:
 
 } // end anonymous namespace
 
-ConstraintManager* GR::CreateRangeConstraintManager(GRStateManager&,
+ConstraintManager* ento::CreateRangeConstraintManager(GRStateManager&,
                                                     SubEngine &subeng) {
   return new RangeConstraintManager(subeng);
 }
index 2fa8a9754a5edfd2c7faad50edb8a17a6f6287e8..0ae68cf79a9dfc3717bee25d62d5695aaf26671a 100644 (file)
@@ -29,7 +29,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::Optional;
 
 //===----------------------------------------------------------------------===//
@@ -404,12 +404,12 @@ public: // Part of public interface to class.
 // RegionStore creation.
 //===----------------------------------------------------------------------===//
 
-StoreManager *GR::CreateRegionStoreManager(GRStateManager& StMgr) {
+StoreManager *ento::CreateRegionStoreManager(GRStateManager& StMgr) {
   RegionStoreFeatures F = maximal_features_tag();
   return new RegionStoreManager(StMgr, F);
 }
 
-StoreManager *GR::CreateFieldsOnlyRegionStoreManager(GRStateManager &StMgr) {
+StoreManager *ento::CreateFieldsOnlyRegionStoreManager(GRStateManager &StMgr) {
   RegionStoreFeatures F = minimal_features_tag();
   F.enableFields(true);
   return new RegionStoreManager(StMgr, F);
index daff8ddec60b87096108558790f2fa01fdff3382..eec5193ef3a5d6c0b614124a4464247058a526d1 100644 (file)
@@ -19,7 +19,7 @@
 #include "clang/GR/PathSensitive/BasicValueFactory.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 //===----------------------------------------------------------------------===//
 // Basic SVal creation.
index 0484b62f8aaf3f7facaf74766ab4ad84f49a9ccc..ed2bc13e498f1af24b0c20038d7884dd93930ab7 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/Basic/IdentifierTable.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using llvm::dyn_cast;
 using llvm::cast;
 using llvm::APSInt;
index 83e79558784f2f66331bffdd1bac9966cdbf9bd8..f0d50da2991e3f96da494652a6156c57552e1d87 100644 (file)
@@ -19,7 +19,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 SimpleConstraintManager::~SimpleConstraintManager() {}
 
@@ -298,6 +298,6 @@ const GRState *SimpleConstraintManager::assumeSymRel(const GRState *state,
   } // end switch
 }
 
-} // end of namespace GR
+} // end of namespace ento
 
 } // end of namespace clang
index 616369395a1cc85eeba2ef48b277d828e9f6b771..85d133f2f8eee8124580f589a477c84f7011b5c1 100644 (file)
@@ -19,7 +19,7 @@
 
 namespace clang {
 
-namespace GR {
+namespace ento {
 
 class SimpleConstraintManager : public ConstraintManager {
   SubEngine &SU;
index 2fc2347608cd2a94e63819cfb7b1d2091c224a74..bcd303e8fbdaeb65226b103312d6368f542975c1 100644 (file)
@@ -15,7 +15,7 @@
 #include "clang/GR/PathSensitive/GRState.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 namespace {
 class SimpleSValBuilder : public SValBuilder {
@@ -47,9 +47,9 @@ public:
 };
 } // end anonymous namespace
 
-SValBuilder *GR::createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc,
-                                            ASTContext &context,
-                                            GRStateManager &stateMgr) {
+SValBuilder *ento::createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc,
+                                           ASTContext &context,
+                                           GRStateManager &stateMgr) {
   return new SimpleSValBuilder(alloc, context, stateMgr);
 }
 
index 99c06e47452d6bb54d97d0a938c129e89704e5e7..2e9857a9a0cd4e11df33596eeddb7f46bcb70941 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/AST/CharUnits.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 StoreManager::StoreManager(GRStateManager &stateMgr)
   : svalBuilder(stateMgr.getSValBuilder()), StateMgr(stateMgr),
index 6d078f41be6692dddd336ccfb98b66fbb33ce734..7727138b021b1c16c8c21a1387bba0b2316aea20 100644 (file)
@@ -18,7 +18,7 @@
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
-using namespace GR;
+using namespace ento;
 
 void SymExpr::dump() const {
   dumpToStream(llvm::errs());
index c7a9f561d8a431112c50ca14819e627df3194217..02e6c2e8d6026f0a2bedf05fd21210a5aa158ac1 100644 (file)
@@ -16,7 +16,7 @@
 #include "clang/Lex/Preprocessor.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace clang;
-using namespace GR;
+using namespace ento;
 using namespace llvm;
 
 namespace {
@@ -48,8 +48,8 @@ public:
 } // end anonymous namespace
 
 PathDiagnosticClient*
-GR::createTextPathDiagnosticClient(const std::string& out,
-                                      const Preprocessor &PP) {
+ento::createTextPathDiagnosticClient(const std::string& out,
+                                     const Preprocessor &PP) {
   return new TextPathDiagnostics(out, PP.getDiagnostics());
 }