[cfe-commits] r122492 - in /cfe/trunk: include/clang/Analysis/DomainSpecific/ include/clang/GR/ include/clang/GR/BugReporter/ include/clang/GR/Checkers/ include/clang/GR/PathSensitive/ lib/Analysis/ lib/FrontendTool/ lib/GR/ lib/GR/Checkers/
Ted Kremenek
kremenek at apple.com
Wed Dec 22 23:20:53 PST 2010
Author: kremenek
Date: Thu Dec 23 01:20:52 2010
New Revision: 122492
URL: http://llvm.org/viewvc/llvm-project?rev=122492&view=rev
Log:
Rename static analyzer namespace 'GR' to 'ento'.
Modified:
cfe/trunk/include/clang/Analysis/DomainSpecific/CocoaConventions.h
cfe/trunk/include/clang/GR/AnalysisConsumer.h
cfe/trunk/include/clang/GR/BugReporter/BugReporter.h
cfe/trunk/include/clang/GR/BugReporter/BugType.h
cfe/trunk/include/clang/GR/BugReporter/PathDiagnostic.h
cfe/trunk/include/clang/GR/Checkers/DereferenceChecker.h
cfe/trunk/include/clang/GR/Checkers/LocalCheckers.h
cfe/trunk/include/clang/GR/FrontendActions.h
cfe/trunk/include/clang/GR/ManagerRegistry.h
cfe/trunk/include/clang/GR/PathDiagnosticClients.h
cfe/trunk/include/clang/GR/PathSensitive/AnalysisManager.h
cfe/trunk/include/clang/GR/PathSensitive/BasicValueFactory.h
cfe/trunk/include/clang/GR/PathSensitive/BlockCounter.h
cfe/trunk/include/clang/GR/PathSensitive/Checker.h
cfe/trunk/include/clang/GR/PathSensitive/CheckerHelpers.h
cfe/trunk/include/clang/GR/PathSensitive/CheckerVisitor.h
cfe/trunk/include/clang/GR/PathSensitive/ConstraintManager.h
cfe/trunk/include/clang/GR/PathSensitive/CoreEngine.h
cfe/trunk/include/clang/GR/PathSensitive/Environment.h
cfe/trunk/include/clang/GR/PathSensitive/ExplodedGraph.h
cfe/trunk/include/clang/GR/PathSensitive/ExprEngine.h
cfe/trunk/include/clang/GR/PathSensitive/ExprEngineBuilders.h
cfe/trunk/include/clang/GR/PathSensitive/GRState.h
cfe/trunk/include/clang/GR/PathSensitive/GRStateTrait.h
cfe/trunk/include/clang/GR/PathSensitive/MemRegion.h
cfe/trunk/include/clang/GR/PathSensitive/SValBuilder.h
cfe/trunk/include/clang/GR/PathSensitive/SVals.h
cfe/trunk/include/clang/GR/PathSensitive/Store.h
cfe/trunk/include/clang/GR/PathSensitive/SubEngine.h
cfe/trunk/include/clang/GR/PathSensitive/SummaryManager.h
cfe/trunk/include/clang/GR/PathSensitive/SymbolManager.h
cfe/trunk/include/clang/GR/PathSensitive/TransferFuncs.h
cfe/trunk/include/clang/GR/PathSensitive/WorkList.h
cfe/trunk/lib/Analysis/CocoaConventions.cpp
cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp
cfe/trunk/lib/GR/AggExprVisitor.cpp
cfe/trunk/lib/GR/AnalysisManager.cpp
cfe/trunk/lib/GR/AnalyzerStatsChecker.cpp
cfe/trunk/lib/GR/BasicConstraintManager.cpp
cfe/trunk/lib/GR/BasicStore.cpp
cfe/trunk/lib/GR/BasicValueFactory.cpp
cfe/trunk/lib/GR/BlockCounter.cpp
cfe/trunk/lib/GR/BugReporter.cpp
cfe/trunk/lib/GR/BugReporterVisitors.cpp
cfe/trunk/lib/GR/CFRefCount.cpp
cfe/trunk/lib/GR/CXXExprEngine.cpp
cfe/trunk/lib/GR/Checker.cpp
cfe/trunk/lib/GR/CheckerHelpers.cpp
cfe/trunk/lib/GR/Checkers/AdjustedReturnValueChecker.cpp
cfe/trunk/lib/GR/Checkers/AnalysisConsumer.cpp
cfe/trunk/lib/GR/Checkers/ArrayBoundChecker.cpp
cfe/trunk/lib/GR/Checkers/ArrayBoundCheckerV2.cpp
cfe/trunk/lib/GR/Checkers/AttrNonNullChecker.cpp
cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.cpp
cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.h
cfe/trunk/lib/GR/Checkers/BuiltinFunctionChecker.cpp
cfe/trunk/lib/GR/Checkers/CStringChecker.cpp
cfe/trunk/lib/GR/Checkers/CallAndMessageChecker.cpp
cfe/trunk/lib/GR/Checkers/CastSizeChecker.cpp
cfe/trunk/lib/GR/Checkers/CastToStructChecker.cpp
cfe/trunk/lib/GR/Checkers/CheckDeadStores.cpp
cfe/trunk/lib/GR/Checkers/CheckObjCDealloc.cpp
cfe/trunk/lib/GR/Checkers/CheckObjCInstMethSignature.cpp
cfe/trunk/lib/GR/Checkers/CheckSecuritySyntaxOnly.cpp
cfe/trunk/lib/GR/Checkers/CheckSizeofPointer.cpp
cfe/trunk/lib/GR/Checkers/ChrootChecker.cpp
cfe/trunk/lib/GR/Checkers/DereferenceChecker.cpp
cfe/trunk/lib/GR/Checkers/DivZeroChecker.cpp
cfe/trunk/lib/GR/Checkers/ExprEngine.cpp
cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.cpp
cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.h
cfe/trunk/lib/GR/Checkers/ExprEngineInternalChecks.h
cfe/trunk/lib/GR/Checkers/FixedAddressChecker.cpp
cfe/trunk/lib/GR/Checkers/FrontendActions.cpp
cfe/trunk/lib/GR/Checkers/IdempotentOperationChecker.cpp
cfe/trunk/lib/GR/Checkers/LLVMConventionsChecker.cpp
cfe/trunk/lib/GR/Checkers/MacOSXAPIChecker.cpp
cfe/trunk/lib/GR/Checkers/MallocChecker.cpp
cfe/trunk/lib/GR/Checkers/NSAutoreleasePoolChecker.cpp
cfe/trunk/lib/GR/Checkers/NSErrorChecker.cpp
cfe/trunk/lib/GR/Checkers/NoReturnFunctionChecker.cpp
cfe/trunk/lib/GR/Checkers/OSAtomicChecker.cpp
cfe/trunk/lib/GR/Checkers/ObjCAtSyncChecker.cpp
cfe/trunk/lib/GR/Checkers/ObjCUnusedIVarsChecker.cpp
cfe/trunk/lib/GR/Checkers/PointerArithChecker.cpp
cfe/trunk/lib/GR/Checkers/PointerSubChecker.cpp
cfe/trunk/lib/GR/Checkers/PthreadLockChecker.cpp
cfe/trunk/lib/GR/Checkers/ReturnPointerRangeChecker.cpp
cfe/trunk/lib/GR/Checkers/ReturnUndefChecker.cpp
cfe/trunk/lib/GR/Checkers/StackAddrLeakChecker.cpp
cfe/trunk/lib/GR/Checkers/StreamChecker.cpp
cfe/trunk/lib/GR/Checkers/UndefBranchChecker.cpp
cfe/trunk/lib/GR/Checkers/UndefCapturedBlockVarChecker.cpp
cfe/trunk/lib/GR/Checkers/UndefResultChecker.cpp
cfe/trunk/lib/GR/Checkers/UndefinedArraySubscriptChecker.cpp
cfe/trunk/lib/GR/Checkers/UndefinedAssignmentChecker.cpp
cfe/trunk/lib/GR/Checkers/UnixAPIChecker.cpp
cfe/trunk/lib/GR/Checkers/UnreachableCodeChecker.cpp
cfe/trunk/lib/GR/Checkers/VLASizeChecker.cpp
cfe/trunk/lib/GR/CoreEngine.cpp
cfe/trunk/lib/GR/Environment.cpp
cfe/trunk/lib/GR/ExplodedGraph.cpp
cfe/trunk/lib/GR/FlatStore.cpp
cfe/trunk/lib/GR/GRState.cpp
cfe/trunk/lib/GR/HTMLDiagnostics.cpp
cfe/trunk/lib/GR/ManagerRegistry.cpp
cfe/trunk/lib/GR/MemRegion.cpp
cfe/trunk/lib/GR/PathDiagnostic.cpp
cfe/trunk/lib/GR/PlistDiagnostics.cpp
cfe/trunk/lib/GR/RangeConstraintManager.cpp
cfe/trunk/lib/GR/RegionStore.cpp
cfe/trunk/lib/GR/SValBuilder.cpp
cfe/trunk/lib/GR/SVals.cpp
cfe/trunk/lib/GR/SimpleConstraintManager.cpp
cfe/trunk/lib/GR/SimpleConstraintManager.h
cfe/trunk/lib/GR/SimpleSValBuilder.cpp
cfe/trunk/lib/GR/Store.cpp
cfe/trunk/lib/GR/SymbolManager.cpp
cfe/trunk/lib/GR/TextPathDiagnostics.cpp
Modified: cfe/trunk/include/clang/Analysis/DomainSpecific/CocoaConventions.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/DomainSpecific/CocoaConventions.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/DomainSpecific/CocoaConventions.h (original)
+++ cfe/trunk/include/clang/Analysis/DomainSpecific/CocoaConventions.h Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
#include "clang/AST/Type.h"
namespace clang {
-namespace GR {
+namespace ento {
namespace cocoa {
enum NamingConvention { NoConvention, CreateRule, InitRule };
Modified: cfe/trunk/include/clang/GR/AnalysisConsumer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/AnalysisConsumer.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/AnalysisConsumer.h (original)
+++ cfe/trunk/include/clang/GR/AnalysisConsumer.h Thu Dec 23 01:20:52 2010
@@ -23,7 +23,7 @@
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
Modified: cfe/trunk/include/clang/GR/BugReporter/BugReporter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/BugReporter/BugReporter.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/BugReporter/BugReporter.h (original)
+++ cfe/trunk/include/clang/GR/BugReporter/BugReporter.h Thu Dec 23 01:20:52 2010
@@ -30,7 +30,7 @@
class Stmt;
class ParentMap;
-namespace GR {
+namespace ento {
class PathDiagnostic;
class PathDiagnosticPiece;
Modified: cfe/trunk/include/clang/GR/BugReporter/BugType.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/BugReporter/BugType.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/BugReporter/BugType.h (original)
+++ cfe/trunk/include/clang/GR/BugReporter/BugType.h Thu Dec 23 01:20:52 2010
@@ -20,7 +20,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class ExplodedNode;
class ExprEngine;
Modified: cfe/trunk/include/clang/GR/BugReporter/PathDiagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/BugReporter/PathDiagnostic.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/BugReporter/PathDiagnostic.h (original)
+++ cfe/trunk/include/clang/GR/BugReporter/PathDiagnostic.h Thu Dec 23 01:20:52 2010
@@ -27,7 +27,7 @@
class SourceManager;
class Stmt;
-namespace GR {
+namespace ento {
//===----------------------------------------------------------------------===//
// High-level interface for handlers of path-sensitive diagnostics.
Modified: cfe/trunk/include/clang/GR/Checkers/DereferenceChecker.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/Checkers/DereferenceChecker.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/Checkers/DereferenceChecker.h (original)
+++ cfe/trunk/include/clang/GR/Checkers/DereferenceChecker.h Thu Dec 23 01:20:52 2010
@@ -20,7 +20,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class ExprEngine;
class ExplodedNode;
Modified: cfe/trunk/include/clang/GR/Checkers/LocalCheckers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/Checkers/LocalCheckers.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/Checkers/LocalCheckers.h (original)
+++ cfe/trunk/include/clang/GR/Checkers/LocalCheckers.h Thu Dec 23 01:20:52 2010
@@ -28,7 +28,7 @@
class LangOptions;
class TranslationUnitDecl;
-namespace GR {
+namespace ento {
class PathDiagnosticClient;
class TransferFuncs;
Modified: cfe/trunk/include/clang/GR/FrontendActions.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/FrontendActions.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/FrontendActions.h (original)
+++ cfe/trunk/include/clang/GR/FrontendActions.h Thu Dec 23 01:20:52 2010
@@ -14,7 +14,7 @@
namespace clang {
-namespace GR {
+namespace ento {
//===----------------------------------------------------------------------===//
// AST Consumer Actions
Modified: cfe/trunk/include/clang/GR/ManagerRegistry.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/ManagerRegistry.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/ManagerRegistry.h (original)
+++ cfe/trunk/include/clang/GR/ManagerRegistry.h Thu Dec 23 01:20:52 2010
@@ -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
Modified: cfe/trunk/include/clang/GR/PathDiagnosticClients.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathDiagnosticClients.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathDiagnosticClients.h (original)
+++ cfe/trunk/include/clang/GR/PathDiagnosticClients.h Thu Dec 23 01:20:52 2010
@@ -20,7 +20,7 @@
class Preprocessor;
-namespace GR {
+namespace ento {
class PathDiagnosticClient;
Modified: cfe/trunk/include/clang/GR/PathSensitive/AnalysisManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/AnalysisManager.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/AnalysisManager.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/AnalysisManager.h Thu Dec 23 01:20:52 2010
@@ -26,7 +26,7 @@
class TranslationUnit;
}
-namespace GR {
+namespace ento {
class AnalysisManager : public BugReporterData {
AnalysisContextManager AnaCtxMgr;
Modified: cfe/trunk/include/clang/GR/PathSensitive/BasicValueFactory.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/BasicValueFactory.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/BasicValueFactory.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/BasicValueFactory.h Thu Dec 23 01:20:52 2010
@@ -24,7 +24,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class GRState;
Modified: cfe/trunk/include/clang/GR/PathSensitive/BlockCounter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/BlockCounter.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/BlockCounter.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/BlockCounter.h Thu Dec 23 01:20:52 2010
@@ -24,7 +24,7 @@
class StackFrameContext;
-namespace GR {
+namespace ento {
class BlockCounter {
void* Data;
Modified: cfe/trunk/include/clang/GR/PathSensitive/Checker.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/Checker.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/Checker.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/Checker.h Thu Dec 23 01:20:52 2010
@@ -24,7 +24,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class CheckerContext {
ExplodedNodeSet &Dst;
Modified: cfe/trunk/include/clang/GR/PathSensitive/CheckerHelpers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/CheckerHelpers.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/CheckerHelpers.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/CheckerHelpers.h Thu Dec 23 01:20:52 2010
@@ -18,7 +18,7 @@
namespace clang {
-namespace GR {
+namespace ento {
bool containsMacro(const Stmt *S);
bool containsEnum(const Stmt *S);
Modified: cfe/trunk/include/clang/GR/PathSensitive/CheckerVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/CheckerVisitor.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/CheckerVisitor.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/CheckerVisitor.h Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
namespace clang {
-namespace GR {
+namespace ento {
//===----------------------------------------------------------------------===//
// Checker visitor interface. Used by subclasses of Checker to specify their
Modified: cfe/trunk/include/clang/GR/PathSensitive/ConstraintManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/ConstraintManager.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/ConstraintManager.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/ConstraintManager.h Thu Dec 23 01:20:52 2010
@@ -23,7 +23,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class GRState;
class GRStateManager;
Modified: cfe/trunk/include/clang/GR/PathSensitive/CoreEngine.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/CoreEngine.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/CoreEngine.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/CoreEngine.h Thu Dec 23 01:20:52 2010
@@ -24,7 +24,7 @@
namespace clang {
-namespace GR {
+namespace ento {
//===----------------------------------------------------------------------===//
/// CoreEngine - Implements the core logic of the graph-reachability
Modified: cfe/trunk/include/clang/GR/PathSensitive/Environment.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/Environment.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/Environment.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/Environment.h Thu Dec 23 01:20:52 2010
@@ -22,7 +22,7 @@
class LiveVariables;
-namespace GR {
+namespace ento {
class EnvironmentManager;
class SValBuilder;
Modified: cfe/trunk/include/clang/GR/PathSensitive/ExplodedGraph.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/ExplodedGraph.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/ExplodedGraph.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/ExplodedGraph.h Thu Dec 23 01:20:52 2010
@@ -36,7 +36,7 @@
class CFG;
-namespace GR {
+namespace ento {
class GRState;
class ExplodedGraph;
@@ -378,8 +378,8 @@
// 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 @@
}
};
- 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;
Modified: cfe/trunk/include/clang/GR/PathSensitive/ExprEngine.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/ExprEngine.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/ExprEngine.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/ExprEngine.h Thu Dec 23 01:20:52 2010
@@ -31,7 +31,7 @@
class ObjCForCollectionStmt;
-namespace GR {
+namespace ento {
class AnalysisManager;
class Checker;
Modified: cfe/trunk/include/clang/GR/PathSensitive/ExprEngineBuilders.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/ExprEngineBuilders.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/ExprEngineBuilders.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/ExprEngineBuilders.h Thu Dec 23 01:20:52 2010
@@ -19,7 +19,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class StmtNodeBuilderRef {
ExplodedNodeSet &Dst;
Modified: cfe/trunk/include/clang/GR/PathSensitive/GRState.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/GRState.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/GRState.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/GRState.h Thu Dec 23 01:20:52 2010
@@ -31,7 +31,7 @@
namespace clang {
class ASTContext;
-namespace GR {
+namespace ento {
class GRStateManager;
class Checker;
Modified: cfe/trunk/include/clang/GR/PathSensitive/GRStateTrait.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/GRStateTrait.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/GRStateTrait.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/GRStateTrait.h Thu Dec 23 01:20:52 2010
@@ -27,7 +27,7 @@
namespace clang {
-namespace GR {
+namespace ento {
template <typename T> struct GRStatePartialTrait;
// Partial-specialization for ImmutableMap.
Modified: cfe/trunk/include/clang/GR/PathSensitive/MemRegion.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/MemRegion.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/MemRegion.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/MemRegion.h Thu Dec 23 01:20:52 2010
@@ -34,7 +34,7 @@
class LocationContext;
class StackFrameContext;
-namespace GR {
+namespace ento {
class MemRegionManager;
class MemSpaceRegion;
@@ -1068,7 +1068,7 @@
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;
}
Modified: cfe/trunk/include/clang/GR/PathSensitive/SValBuilder.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/SValBuilder.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/SValBuilder.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/SValBuilder.h Thu Dec 23 01:20:52 2010
@@ -23,7 +23,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class GRState;
Modified: cfe/trunk/include/clang/GR/PathSensitive/SVals.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/SVals.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/SVals.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/SVals.h Thu Dec 23 01:20:52 2010
@@ -29,7 +29,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class CompoundValData;
class LazyCompoundValData;
@@ -342,7 +342,7 @@
};
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 @@
};
class CompoundVal : public NonLoc {
- friend class GR::SValBuilder;
+ friend class ento::SValBuilder;
explicit CompoundVal(const CompoundValData* D) : NonLoc(CompoundValKind, D) {}
@@ -399,7 +399,7 @@
};
class LazyCompoundVal : public NonLoc {
- friend class GR::SValBuilder;
+ friend class ento::SValBuilder;
explicit LazyCompoundVal(const LazyCompoundValData *D)
: NonLoc(LazyCompoundValKind, D) {}
@@ -419,7 +419,7 @@
}
};
-} // end namespace GR::nonloc
+} // end namespace ento::nonloc
//==------------------------------------------------------------------------==//
// Subclasses of Loc.
@@ -505,14 +505,14 @@
}
};
-} // 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;
}
Modified: cfe/trunk/include/clang/GR/PathSensitive/Store.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/Store.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/Store.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/Store.h Thu Dec 23 01:20:52 2010
@@ -26,7 +26,7 @@
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
Modified: cfe/trunk/include/clang/GR/PathSensitive/SubEngine.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/SubEngine.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/SubEngine.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/SubEngine.h Thu Dec 23 01:20:52 2010
@@ -22,7 +22,7 @@
class LocationContext;
class Stmt;
-namespace GR {
+namespace ento {
class AnalysisManager;
class ExplodedNode;
Modified: cfe/trunk/include/clang/GR/PathSensitive/SummaryManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/SummaryManager.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/SummaryManager.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/SummaryManager.h Thu Dec 23 01:20:52 2010
@@ -20,7 +20,7 @@
namespace clang {
-namespace GR {
+namespace ento {
namespace summMgr {
Modified: cfe/trunk/include/clang/GR/PathSensitive/SymbolManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/SymbolManager.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/SymbolManager.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/SymbolManager.h Thu Dec 23 01:20:52 2010
@@ -31,7 +31,7 @@
class ASTContext;
class StackFrameContext;
-namespace GR {
+namespace ento {
class BasicValueFactory;
class MemRegion;
class SubRegion;
@@ -481,7 +481,7 @@
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;
}
Modified: cfe/trunk/include/clang/GR/PathSensitive/TransferFuncs.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/TransferFuncs.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/TransferFuncs.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/TransferFuncs.h Thu Dec 23 01:20:52 2010
@@ -22,7 +22,7 @@
namespace clang {
class ObjCMessageExpr;
-namespace GR {
+namespace ento {
class ExplodedNode;
class ExplodedNodeSet;
class EndPathNodeBuilder;
Modified: cfe/trunk/include/clang/GR/PathSensitive/WorkList.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/GR/PathSensitive/WorkList.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/include/clang/GR/PathSensitive/WorkList.h (original)
+++ cfe/trunk/include/clang/GR/PathSensitive/WorkList.h Thu Dec 23 01:20:52 2010
@@ -22,7 +22,7 @@
class CFGBlock;
-namespace GR {
+namespace ento {
class ExplodedNode;
class ExplodedNodeImpl;
Modified: cfe/trunk/lib/Analysis/CocoaConventions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CocoaConventions.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CocoaConventions.cpp (original)
+++ cfe/trunk/lib/Analysis/CocoaConventions.cpp Thu Dec 23 01:20:52 2010
@@ -18,7 +18,7 @@
#include "llvm/ADT/StringExtras.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
using llvm::StringRef;
Modified: cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp (original)
+++ cfe/trunk/lib/FrontendTool/ExecuteCompilerInvocation.cpp Thu Dec 23 01:20:52 2010
@@ -80,7 +80,7 @@
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();
}
}
Modified: cfe/trunk/lib/GR/AggExprVisitor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/AggExprVisitor.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/AggExprVisitor.cpp (original)
+++ cfe/trunk/lib/GR/AggExprVisitor.cpp Thu Dec 23 01:20:52 2010
@@ -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
Modified: cfe/trunk/lib/GR/AnalysisManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/AnalysisManager.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/AnalysisManager.cpp (original)
+++ cfe/trunk/lib/GR/AnalysisManager.cpp Thu Dec 23 01:20:52 2010
@@ -12,7 +12,7 @@
#include "clang/Index/Indexer.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
AnalysisContext *
AnalysisManager::getAnalysisContextInAnotherTU(const Decl *D) {
Modified: cfe/trunk/lib/GR/AnalyzerStatsChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/AnalyzerStatsChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/AnalyzerStatsChecker.cpp (original)
+++ cfe/trunk/lib/GR/AnalyzerStatsChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
return &x;
}
-void GR::RegisterAnalyzerStatsChecker(ExprEngine &Eng) {
+void ento::RegisterAnalyzerStatsChecker(ExprEngine &Eng) {
Eng.registerCheck(new AnalyzerStatsChecker());
}
Modified: cfe/trunk/lib/GR/BasicConstraintManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/BasicConstraintManager.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/BasicConstraintManager.cpp (original)
+++ cfe/trunk/lib/GR/BasicConstraintManager.cpp Thu Dec 23 01:20:52 2010
@@ -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 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 @@
} // end anonymous namespace
-ConstraintManager* GR::CreateBasicConstraintManager(GRStateManager& statemgr,
+ConstraintManager* ento::CreateBasicConstraintManager(GRStateManager& statemgr,
SubEngine &subengine) {
return new BasicConstraintManager(statemgr, subengine);
}
Modified: cfe/trunk/lib/GR/BasicStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/BasicStore.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/BasicStore.cpp (original)
+++ cfe/trunk/lib/GR/BasicStore.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
} // end anonymous namespace
-StoreManager* GR::CreateBasicStoreManager(GRStateManager& StMgr) {
+StoreManager* ento::CreateBasicStoreManager(GRStateManager& StMgr) {
return new BasicStoreManager(StMgr);
}
Modified: cfe/trunk/lib/GR/BasicValueFactory.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/BasicValueFactory.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/BasicValueFactory.cpp (original)
+++ cfe/trunk/lib/GR/BasicValueFactory.cpp Thu Dec 23 01:20:52 2010
@@ -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) {
Modified: cfe/trunk/lib/GR/BlockCounter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/BlockCounter.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/BlockCounter.cpp (original)
+++ cfe/trunk/lib/GR/BlockCounter.cpp Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
#include "llvm/ADT/ImmutableMap.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
Modified: cfe/trunk/lib/GR/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/BugReporter.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/BugReporter.cpp (original)
+++ cfe/trunk/lib/GR/BugReporter.cpp Thu Dec 23 01:20:52 2010
@@ -30,7 +30,7 @@
#include <queue>
using namespace clang;
-using namespace GR;
+using namespace ento;
BugReporterVisitor::~BugReporterVisitor() {}
BugReporterContext::~BugReporterContext() {
Modified: cfe/trunk/lib/GR/BugReporterVisitors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/BugReporterVisitors.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/BugReporterVisitors.cpp (original)
+++ cfe/trunk/lib/GR/BugReporterVisitors.cpp Thu Dec 23 01:20:52 2010
@@ -20,7 +20,7 @@
#include "clang/GR/PathSensitive/GRState.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
//===----------------------------------------------------------------------===//
// Utility functions.
Modified: cfe/trunk/lib/GR/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/CFRefCount.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/CFRefCount.cpp (original)
+++ cfe/trunk/lib/GR/CFRefCount.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
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 AutoreleaseStack {}; }
namespace clang {
-namespace GR {
+namespace ento {
template<> struct GRStateTrait<AutoreleaseStack>
: public GRStatePartialTrait<ARStack> {
static inline void* GDMIndex() { return &AutoRBIndex; }
@@ -3494,7 +3494,7 @@
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);
}
Modified: cfe/trunk/lib/GR/CXXExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/CXXExprEngine.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/CXXExprEngine.cpp (original)
+++ cfe/trunk/lib/GR/CXXExprEngine.cpp Thu Dec 23 01:20:52 2010
@@ -16,7 +16,7 @@
#include "clang/AST/DeclCXX.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
class CallExprWLItem {
Modified: cfe/trunk/lib/GR/Checker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checker.cpp (original)
+++ cfe/trunk/lib/GR/Checker.cpp Thu Dec 23 01:20:52 2010
@@ -14,7 +14,7 @@
#include "clang/GR/PathSensitive/Checker.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
Checker::~Checker() {}
Modified: cfe/trunk/lib/GR/CheckerHelpers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/CheckerHelpers.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/CheckerHelpers.cpp (original)
+++ cfe/trunk/lib/GR/CheckerHelpers.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
}
// 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 @@
}
// 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 @@
}
// 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;
Modified: cfe/trunk/lib/GR/Checkers/AdjustedReturnValueChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/AdjustedReturnValueChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/AdjustedReturnValueChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/AdjustedReturnValueChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterAdjustedReturnValueChecker(ExprEngine &Eng) {
+void ento::RegisterAdjustedReturnValueChecker(ExprEngine &Eng) {
Eng.registerCheck(new AdjustedReturnValueChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/AnalysisConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/AnalysisConsumer.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/AnalysisConsumer.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/AnalysisConsumer.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
// 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));
Modified: cfe/trunk/lib/GR/Checkers/ArrayBoundChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ArrayBoundChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ArrayBoundChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ArrayBoundChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterArrayBoundChecker(ExprEngine &Eng) {
+void ento::RegisterArrayBoundChecker(ExprEngine &Eng) {
Eng.registerCheck(new ArrayBoundChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/ArrayBoundCheckerV2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ArrayBoundCheckerV2.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ArrayBoundCheckerV2.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ArrayBoundCheckerV2.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterArrayBoundCheckerV2(ExprEngine &Eng) {
+void ento::RegisterArrayBoundCheckerV2(ExprEngine &Eng) {
Eng.registerCheck(new ArrayBoundCheckerV2());
}
Modified: cfe/trunk/lib/GR/Checkers/AttrNonNullChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/AttrNonNullChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/AttrNonNullChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/AttrNonNullChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterAttrNonNullChecker(ExprEngine &Eng) {
+void ento::RegisterAttrNonNullChecker(ExprEngine &Eng) {
Eng.registerCheck(new AttrNonNullChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
// 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);
Modified: cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.h (original)
+++ cfe/trunk/lib/GR/Checkers/BasicObjCFoundationChecks.h Thu Dec 23 01:20:52 2010
@@ -21,7 +21,7 @@
class ASTContext;
class Decl;
-namespace GR {
+namespace ento {
class BugReporter;
class ExprEngine;
Modified: cfe/trunk/lib/GR/Checkers/BuiltinFunctionChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/BuiltinFunctionChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/BuiltinFunctionChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/BuiltinFunctionChecker.cpp Thu Dec 23 01:20:52 2010
@@ -16,7 +16,7 @@
#include "clang/Basic/Builtins.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
@@ -28,7 +28,7 @@
}
-void GR::RegisterBuiltinFunctionChecker(ExprEngine &Eng) {
+void ento::RegisterBuiltinFunctionChecker(ExprEngine &Eng) {
Eng.registerCheck(new BuiltinFunctionChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/CStringChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CStringChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CStringChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CStringChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
} //end anonymous namespace
namespace clang {
-namespace GR {
+namespace ento {
template <>
struct GRStateTrait<CStringLength>
: public GRStatePartialTrait<CStringLength::EntryMap> {
@@ -109,7 +109,7 @@
}
}
-void GR::RegisterCStringChecker(ExprEngine &Eng) {
+void ento::RegisterCStringChecker(ExprEngine &Eng) {
Eng.registerCheck(new CStringChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/CallAndMessageChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CallAndMessageChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CallAndMessageChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CallAndMessageChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterCallAndMessageChecker(ExprEngine &Eng) {
+void ento::RegisterCallAndMessageChecker(ExprEngine &Eng) {
Eng.registerCheck(new CallAndMessageChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/CastSizeChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CastSizeChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CastSizeChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CastSizeChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 GR::RegisterCastSizeChecker(ExprEngine &Eng) {
+void ento::RegisterCastSizeChecker(ExprEngine &Eng) {
Eng.registerCheck(new CastSizeChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/CastToStructChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CastToStructChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CastToStructChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CastToStructChecker.cpp Thu Dec 23 01:20:52 2010
@@ -18,7 +18,7 @@
#include "ExprEngineInternalChecks.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
class CastToStructChecker
@@ -74,6 +74,6 @@
}
}
-void GR::RegisterCastToStructChecker(ExprEngine &Eng) {
+void ento::RegisterCastToStructChecker(ExprEngine &Eng) {
Eng.registerCheck(new CastToStructChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/CheckDeadStores.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CheckDeadStores.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CheckDeadStores.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CheckDeadStores.cpp Thu Dec 23 01:20:52 2010
@@ -24,7 +24,7 @@
#include "llvm/ADT/SmallPtrSet.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
@@ -281,7 +281,7 @@
} // 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);
Modified: cfe/trunk/lib/GR/Checkers/CheckObjCDealloc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CheckObjCDealloc.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CheckObjCDealloc.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CheckObjCDealloc.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
return false;
}
-void GR::CheckObjCDealloc(const ObjCImplementationDecl* D,
+void ento::CheckObjCDealloc(const ObjCImplementationDecl* D,
const LangOptions& LOpts, BugReporter& BR) {
assert (LOpts.getGCMode() != LangOptions::GCOnly);
Modified: cfe/trunk/lib/GR/Checkers/CheckObjCInstMethSignature.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CheckObjCInstMethSignature.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CheckObjCInstMethSignature.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CheckObjCInstMethSignature.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
}
}
-void GR::CheckObjCInstMethSignature(const ObjCImplementationDecl* ID,
+void ento::CheckObjCInstMethSignature(const ObjCImplementationDecl* ID,
BugReporter& BR) {
const ObjCInterfaceDecl* D = ID->getClassInterface();
Modified: cfe/trunk/lib/GR/Checkers/CheckSecuritySyntaxOnly.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CheckSecuritySyntaxOnly.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CheckSecuritySyntaxOnly.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CheckSecuritySyntaxOnly.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
// 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());
}
Modified: cfe/trunk/lib/GR/Checkers/CheckSizeofPointer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/CheckSizeofPointer.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/CheckSizeofPointer.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/CheckSizeofPointer.cpp Thu Dec 23 01:20:52 2010
@@ -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 GR::CheckSizeofPointer(const Decl *D, BugReporter &BR) {
+void ento::CheckSizeofPointer(const Decl *D, BugReporter &BR) {
WalkAST walker(BR);
walker.Visit(D->getBody());
}
Modified: cfe/trunk/lib/GR/Checkers/ChrootChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ChrootChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ChrootChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ChrootChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
} // end anonymous namespace
-void GR::RegisterChrootChecker(ExprEngine &Eng) {
+void ento::RegisterChrootChecker(ExprEngine &Eng) {
Eng.registerCheck(new ChrootChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/DereferenceChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/DereferenceChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/DereferenceChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/DereferenceChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // 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,
Modified: cfe/trunk/lib/GR/Checkers/DivZeroChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/DivZeroChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/DivZeroChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/DivZeroChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterDivZeroChecker(ExprEngine &Eng) {
+void ento::RegisterDivZeroChecker(ExprEngine &Eng) {
Eng.registerCheck(new DivZeroChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/ExprEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ExprEngine.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ExprEngine.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ExprEngine.cpp Thu Dec 23 01:20:52 2010
@@ -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;
Modified: cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
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.
Modified: cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.h (original)
+++ cfe/trunk/lib/GR/Checkers/ExprEngineExperimentalChecks.h Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class ExprEngine;
Modified: cfe/trunk/lib/GR/Checkers/ExprEngineInternalChecks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ExprEngineInternalChecks.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ExprEngineInternalChecks.h (original)
+++ cfe/trunk/lib/GR/Checkers/ExprEngineInternalChecks.h Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class ExprEngine;
Modified: cfe/trunk/lib/GR/Checkers/FixedAddressChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/FixedAddressChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/FixedAddressChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/FixedAddressChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 GR::RegisterFixedAddressChecker(ExprEngine &Eng) {
+void ento::RegisterFixedAddressChecker(ExprEngine &Eng) {
Eng.registerCheck(new FixedAddressChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/FrontendActions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/FrontendActions.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/FrontendActions.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/FrontendActions.cpp Thu Dec 23 01:20:52 2010
@@ -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) {
Modified: cfe/trunk/lib/GR/Checkers/IdempotentOperationChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/IdempotentOperationChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/IdempotentOperationChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/IdempotentOperationChecker.cpp Thu Dec 23 01:20:52 2010
@@ -58,7 +58,7 @@
#include <deque>
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
class IdempotentOperationChecker
@@ -130,7 +130,7 @@
return &x;
}
-void GR::RegisterIdempotentOperationChecker(ExprEngine &Eng) {
+void ento::RegisterIdempotentOperationChecker(ExprEngine &Eng) {
Eng.registerCheck(new IdempotentOperationChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/LLVMConventionsChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/LLVMConventionsChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/LLVMConventionsChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/LLVMConventionsChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
}
}
-void GR::CheckLLVMConventions(TranslationUnitDecl &TU,
+void ento::CheckLLVMConventions(TranslationUnitDecl &TU,
BugReporter &BR) {
ScanCodeDecls(&TU, BR);
}
Modified: cfe/trunk/lib/GR/Checkers/MacOSXAPIChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/MacOSXAPIChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/MacOSXAPIChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/MacOSXAPIChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} //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());
}
Modified: cfe/trunk/lib/GR/Checkers/MallocChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/MallocChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/MallocChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/MallocChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
typedef llvm::ImmutableMap<SymbolRef, RefState> RegionStateTy;
namespace clang {
-namespace GR {
+namespace ento {
template <>
struct GRStateTrait<RegionState>
: public GRStatePartialTrait<RegionStateTy> {
@@ -126,7 +126,7 @@
}
}
-void GR::RegisterMallocChecker(ExprEngine &Eng) {
+void ento::RegisterMallocChecker(ExprEngine &Eng) {
Eng.registerCheck(new MallocChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/NSAutoreleasePoolChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/NSAutoreleasePoolChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/NSAutoreleasePoolChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/NSAutoreleasePoolChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
} // 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",
Modified: cfe/trunk/lib/GR/Checkers/NSErrorChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/NSErrorChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/NSErrorChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/NSErrorChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
} // 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));
Modified: cfe/trunk/lib/GR/Checkers/NoReturnFunctionChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/NoReturnFunctionChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/NoReturnFunctionChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/NoReturnFunctionChecker.cpp Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
#include "llvm/ADT/StringSwitch.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
@@ -29,7 +29,7 @@
}
-void GR::RegisterNoReturnFunctionChecker(ExprEngine &Eng) {
+void ento::RegisterNoReturnFunctionChecker(ExprEngine &Eng) {
Eng.registerCheck(new NoReturnFunctionChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/OSAtomicChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/OSAtomicChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/OSAtomicChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/OSAtomicChecker.cpp Thu Dec 23 01:20:52 2010
@@ -16,7 +16,7 @@
#include "clang/Basic/Builtins.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
@@ -31,7 +31,7 @@
}
-void GR::RegisterOSAtomicChecker(ExprEngine &Eng) {
+void ento::RegisterOSAtomicChecker(ExprEngine &Eng) {
Eng.registerCheck(new OSAtomicChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/ObjCAtSyncChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ObjCAtSyncChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ObjCAtSyncChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ObjCAtSyncChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // 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());
Modified: cfe/trunk/lib/GR/Checkers/ObjCUnusedIVarsChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ObjCUnusedIVarsChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ObjCUnusedIVarsChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ObjCUnusedIVarsChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
}
}
-void GR::CheckObjCUnusedIvar(const ObjCImplementationDecl *D,
+void ento::CheckObjCUnusedIvar(const ObjCImplementationDecl *D,
BugReporter &BR) {
const ObjCInterfaceDecl* ID = D->getClassInterface();
Modified: cfe/trunk/lib/GR/Checkers/PointerArithChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/PointerArithChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/PointerArithChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/PointerArithChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 GR::RegisterPointerArithChecker(ExprEngine &Eng) {
+void ento::RegisterPointerArithChecker(ExprEngine &Eng) {
Eng.registerCheck(new PointerArithChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/PointerSubChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/PointerSubChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/PointerSubChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/PointerSubChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 GR::RegisterPointerSubChecker(ExprEngine &Eng) {
+void ento::RegisterPointerSubChecker(ExprEngine &Eng) {
Eng.registerCheck(new PointerSubChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/PthreadLockChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/PthreadLockChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/PthreadLockChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/PthreadLockChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
// 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 @@
} // end GR namespace
} // end clang namespace
-void GR::RegisterPthreadLockChecker(ExprEngine &Eng) {
+void ento::RegisterPthreadLockChecker(ExprEngine &Eng) {
Eng.registerCheck(new PthreadLockChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/ReturnPointerRangeChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ReturnPointerRangeChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ReturnPointerRangeChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ReturnPointerRangeChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterReturnPointerRangeChecker(ExprEngine &Eng) {
+void ento::RegisterReturnPointerRangeChecker(ExprEngine &Eng) {
Eng.registerCheck(new ReturnPointerRangeChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/ReturnUndefChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/ReturnUndefChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/ReturnUndefChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/ReturnUndefChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterReturnUndefChecker(ExprEngine &Eng) {
+void ento::RegisterReturnUndefChecker(ExprEngine &Eng) {
Eng.registerCheck(new ReturnUndefChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/StackAddrLeakChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/StackAddrLeakChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/StackAddrLeakChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/StackAddrLeakChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterStackAddrLeakChecker(ExprEngine &Eng) {
+void ento::RegisterStackAddrLeakChecker(ExprEngine &Eng) {
Eng.registerCheck(new StackAddrLeakChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/StreamChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/StreamChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/StreamChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/StreamChecker.cpp Thu Dec 23 01:20:52 2010
@@ -20,7 +20,7 @@
#include "llvm/ADT/ImmutableMap.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
@@ -105,7 +105,7 @@
} // end anonymous namespace
namespace clang {
-namespace GR {
+namespace ento {
template <>
struct GRStateTrait<StreamState>
: public GRStatePartialTrait<llvm::ImmutableMap<SymbolRef, StreamState> > {
@@ -114,7 +114,7 @@
}
}
-void GR::RegisterStreamChecker(ExprEngine &Eng) {
+void ento::RegisterStreamChecker(ExprEngine &Eng) {
Eng.registerCheck(new StreamChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UndefBranchChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UndefBranchChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UndefBranchChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UndefBranchChecker.cpp Thu Dec 23 01:20:52 2010
@@ -17,7 +17,7 @@
#include "clang/GR/PathSensitive/Checker.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
namespace {
@@ -56,7 +56,7 @@
}
-void GR::RegisterUndefBranchChecker(ExprEngine &Eng) {
+void ento::RegisterUndefBranchChecker(ExprEngine &Eng) {
Eng.registerCheck(new UndefBranchChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UndefCapturedBlockVarChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UndefCapturedBlockVarChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UndefCapturedBlockVarChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UndefCapturedBlockVarChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterUndefCapturedBlockVarChecker(ExprEngine &Eng) {
+void ento::RegisterUndefCapturedBlockVarChecker(ExprEngine &Eng) {
Eng.registerCheck(new UndefCapturedBlockVarChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UndefResultChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UndefResultChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UndefResultChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UndefResultChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterUndefResultChecker(ExprEngine &Eng) {
+void ento::RegisterUndefResultChecker(ExprEngine &Eng) {
Eng.registerCheck(new UndefResultChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UndefinedArraySubscriptChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UndefinedArraySubscriptChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UndefinedArraySubscriptChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UndefinedArraySubscriptChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterUndefinedArraySubscriptChecker(ExprEngine &Eng) {
+void ento::RegisterUndefinedArraySubscriptChecker(ExprEngine &Eng) {
Eng.registerCheck(new UndefinedArraySubscriptChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UndefinedAssignmentChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UndefinedAssignmentChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UndefinedAssignmentChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UndefinedAssignmentChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
}
-void GR::RegisterUndefinedAssignmentChecker(ExprEngine &Eng){
+void ento::RegisterUndefinedAssignmentChecker(ExprEngine &Eng){
Eng.registerCheck(new UndefinedAssignmentChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UnixAPIChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UnixAPIChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UnixAPIChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UnixAPIChecker.cpp Thu Dec 23 01:20:52 2010
@@ -21,7 +21,7 @@
#include <fcntl.h>
using namespace clang;
-using namespace GR;
+using namespace ento;
using llvm::Optional;
namespace {
@@ -46,7 +46,7 @@
};
} //end anonymous namespace
-void GR::RegisterUnixAPIChecker(ExprEngine &Eng) {
+void ento::RegisterUnixAPIChecker(ExprEngine &Eng) {
Eng.registerCheck(new UnixAPIChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/UnreachableCodeChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/UnreachableCodeChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/UnreachableCodeChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/UnreachableCodeChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
return &x;
}
-void GR::RegisterUnreachableCodeChecker(ExprEngine &Eng) {
+void ento::RegisterUnreachableCodeChecker(ExprEngine &Eng) {
Eng.registerCheck(new UnreachableCodeChecker());
}
Modified: cfe/trunk/lib/GR/Checkers/VLASizeChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Checkers/VLASizeChecker.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Checkers/VLASizeChecker.cpp (original)
+++ cfe/trunk/lib/GR/Checkers/VLASizeChecker.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-void GR::RegisterVLASizeChecker(ExprEngine &Eng) {
+void ento::RegisterVLASizeChecker(ExprEngine &Eng) {
Eng.registerCheck(new VLASizeChecker());
}
Modified: cfe/trunk/lib/GR/CoreEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/CoreEngine.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/CoreEngine.cpp (original)
+++ cfe/trunk/lib/GR/CoreEngine.cpp Thu Dec 23 01:20:52 2010
@@ -25,11 +25,11 @@
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);
}
Modified: cfe/trunk/lib/GR/Environment.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Environment.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Environment.cpp (original)
+++ cfe/trunk/lib/GR/Environment.cpp Thu Dec 23 01:20:52 2010
@@ -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);
Modified: cfe/trunk/lib/GR/ExplodedGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/ExplodedGraph.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/ExplodedGraph.cpp (original)
+++ cfe/trunk/lib/GR/ExplodedGraph.cpp Thu Dec 23 01:20:52 2010
@@ -21,7 +21,7 @@
#include <vector>
using namespace clang;
-using namespace GR;
+using namespace ento;
//===----------------------------------------------------------------------===//
// Node auditing.
Modified: cfe/trunk/lib/GR/FlatStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/FlatStore.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/FlatStore.cpp (original)
+++ cfe/trunk/lib/GR/FlatStore.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // end anonymous namespace
-StoreManager *GR::CreateFlatStoreManager(GRStateManager &StMgr) {
+StoreManager *ento::CreateFlatStoreManager(GRStateManager &StMgr) {
return new FlatStoreManager(StMgr);
}
Modified: cfe/trunk/lib/GR/GRState.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/GRState.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/GRState.cpp (original)
+++ cfe/trunk/lib/GR/GRState.cpp Thu Dec 23 01:20:52 2010
@@ -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.
Modified: cfe/trunk/lib/GR/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/HTMLDiagnostics.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/lib/GR/HTMLDiagnostics.cpp Thu Dec 23 01:20:52 2010
@@ -26,7 +26,7 @@
#include "llvm/Support/Path.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
//===----------------------------------------------------------------------===//
// Boilerplate.
@@ -78,8 +78,8 @@
}
PathDiagnosticClient*
-GR::createHTMLDiagnosticClient(const std::string& prefix,
- const Preprocessor &PP) {
+ento::createHTMLDiagnosticClient(const std::string& prefix,
+ const Preprocessor &PP) {
return new HTMLDiagnostics(prefix, PP);
}
Modified: cfe/trunk/lib/GR/ManagerRegistry.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/ManagerRegistry.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/ManagerRegistry.cpp (original)
+++ cfe/trunk/lib/GR/ManagerRegistry.cpp Thu Dec 23 01:20:52 2010
@@ -14,7 +14,7 @@
#include "clang/GR/ManagerRegistry.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
StoreManagerCreator ManagerRegistry::StoreMgrCreator = 0;
Modified: cfe/trunk/lib/GR/MemRegion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/MemRegion.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/MemRegion.cpp (original)
+++ cfe/trunk/lib/GR/MemRegion.cpp Thu Dec 23 01:20:52 2010
@@ -22,7 +22,7 @@
#include "llvm/Support/raw_ostream.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
//===----------------------------------------------------------------------===//
// MemRegion Construction.
Modified: cfe/trunk/lib/GR/PathDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/PathDiagnostic.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/PathDiagnostic.cpp (original)
+++ cfe/trunk/lib/GR/PathDiagnostic.cpp Thu Dec 23 01:20:52 2010
@@ -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;
Modified: cfe/trunk/lib/GR/PlistDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/PlistDiagnostics.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/PlistDiagnostics.cpp (original)
+++ cfe/trunk/lib/GR/PlistDiagnostics.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
: 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);
}
Modified: cfe/trunk/lib/GR/RangeConstraintManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/RangeConstraintManager.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/RangeConstraintManager.cpp (original)
+++ cfe/trunk/lib/GR/RangeConstraintManager.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
typedef llvm::ImmutableMap<SymbolRef,RangeSet> ConstraintRangeTy;
namespace clang {
-namespace GR {
+namespace ento {
template<>
struct GRStateTrait<ConstraintRange>
: public GRStatePartialTrait<ConstraintRangeTy> {
@@ -254,7 +254,7 @@
} // end anonymous namespace
-ConstraintManager* GR::CreateRangeConstraintManager(GRStateManager&,
+ConstraintManager* ento::CreateRangeConstraintManager(GRStateManager&,
SubEngine &subeng) {
return new RangeConstraintManager(subeng);
}
Modified: cfe/trunk/lib/GR/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/RegionStore.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/RegionStore.cpp (original)
+++ cfe/trunk/lib/GR/RegionStore.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
// 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);
Modified: cfe/trunk/lib/GR/SValBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/SValBuilder.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/SValBuilder.cpp (original)
+++ cfe/trunk/lib/GR/SValBuilder.cpp Thu Dec 23 01:20:52 2010
@@ -19,7 +19,7 @@
#include "clang/GR/PathSensitive/BasicValueFactory.h"
using namespace clang;
-using namespace GR;
+using namespace ento;
//===----------------------------------------------------------------------===//
// Basic SVal creation.
Modified: cfe/trunk/lib/GR/SVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/SVals.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/SVals.cpp (original)
+++ cfe/trunk/lib/GR/SVals.cpp Thu Dec 23 01:20:52 2010
@@ -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;
Modified: cfe/trunk/lib/GR/SimpleConstraintManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/SimpleConstraintManager.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/SimpleConstraintManager.cpp (original)
+++ cfe/trunk/lib/GR/SimpleConstraintManager.cpp Thu Dec 23 01:20:52 2010
@@ -19,7 +19,7 @@
namespace clang {
-namespace GR {
+namespace ento {
SimpleConstraintManager::~SimpleConstraintManager() {}
@@ -298,6 +298,6 @@
} // end switch
}
-} // end of namespace GR
+} // end of namespace ento
} // end of namespace clang
Modified: cfe/trunk/lib/GR/SimpleConstraintManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/SimpleConstraintManager.h?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/SimpleConstraintManager.h (original)
+++ cfe/trunk/lib/GR/SimpleConstraintManager.h Thu Dec 23 01:20:52 2010
@@ -19,7 +19,7 @@
namespace clang {
-namespace GR {
+namespace ento {
class SimpleConstraintManager : public ConstraintManager {
SubEngine &SU;
Modified: cfe/trunk/lib/GR/SimpleSValBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/SimpleSValBuilder.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/SimpleSValBuilder.cpp (original)
+++ cfe/trunk/lib/GR/SimpleSValBuilder.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
};
} // 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);
}
Modified: cfe/trunk/lib/GR/Store.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/Store.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/Store.cpp (original)
+++ cfe/trunk/lib/GR/Store.cpp Thu Dec 23 01:20:52 2010
@@ -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),
Modified: cfe/trunk/lib/GR/SymbolManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/SymbolManager.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/SymbolManager.cpp (original)
+++ cfe/trunk/lib/GR/SymbolManager.cpp Thu Dec 23 01:20:52 2010
@@ -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());
Modified: cfe/trunk/lib/GR/TextPathDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/GR/TextPathDiagnostics.cpp?rev=122492&r1=122491&r2=122492&view=diff
==============================================================================
--- cfe/trunk/lib/GR/TextPathDiagnostics.cpp (original)
+++ cfe/trunk/lib/GR/TextPathDiagnostics.cpp Thu Dec 23 01:20:52 2010
@@ -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 @@
} // 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());
}
More information about the cfe-commits
mailing list