Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 9ef6537

Browse files
committed
Rename static analyzer namespace 'GR' to 'ento'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122492 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 51fbe2b commit 9ef6537

File tree

119 files changed

+209
-209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+209
-209
lines changed

include/clang/Analysis/DomainSpecific/CocoaConventions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "clang/AST/Type.h"
1818

1919
namespace clang {
20-
namespace GR {
20+
namespace ento {
2121
namespace cocoa {
2222

2323
enum NamingConvention { NoConvention, CreateRule, InitRule };

include/clang/GR/AnalysisConsumer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AnalyzerOptions;
2323
class ASTConsumer;
2424
class Preprocessor;
2525

26-
namespace GR {
26+
namespace ento {
2727

2828
/// CreateAnalysisConsumer - Creates an ASTConsumer to run various code
2929
/// analysis passes. (The set of analyses run is controlled by command-line

include/clang/GR/BugReporter/BugReporter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Diagnostic;
3030
class Stmt;
3131
class ParentMap;
3232

33-
namespace GR {
33+
namespace ento {
3434

3535
class PathDiagnostic;
3636
class PathDiagnosticPiece;

include/clang/GR/BugReporter/BugType.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace clang {
2222

23-
namespace GR {
23+
namespace ento {
2424

2525
class ExplodedNode;
2626
class ExprEngine;

include/clang/GR/BugReporter/PathDiagnostic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Decl;
2727
class SourceManager;
2828
class Stmt;
2929

30-
namespace GR {
30+
namespace ento {
3131

3232
//===----------------------------------------------------------------------===//
3333
// High-level interface for handlers of path-sensitive diagnostics.

include/clang/GR/Checkers/DereferenceChecker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace clang {
2222

23-
namespace GR {
23+
namespace ento {
2424

2525
class ExprEngine;
2626
class ExplodedNode;

include/clang/GR/Checkers/LocalCheckers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ObjCImplementationDecl;
2828
class LangOptions;
2929
class TranslationUnitDecl;
3030

31-
namespace GR {
31+
namespace ento {
3232

3333
class PathDiagnosticClient;
3434
class TransferFuncs;

include/clang/GR/FrontendActions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace clang {
1616

17-
namespace GR {
17+
namespace ento {
1818

1919
//===----------------------------------------------------------------------===//
2020
// AST Consumer Actions

include/clang/GR/ManagerRegistry.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace clang {
2020

21-
namespace GR {
21+
namespace ento {
2222

2323
/// ManagerRegistry - This class records manager creators registered at
2424
/// runtime. The information is communicated to AnalysisManager through static

include/clang/GR/PathDiagnosticClients.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace clang {
2020

2121
class Preprocessor;
2222

23-
namespace GR {
23+
namespace ento {
2424

2525
class PathDiagnosticClient;
2626

include/clang/GR/PathSensitive/AnalysisManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace idx {
2626
class TranslationUnit;
2727
}
2828

29-
namespace GR {
29+
namespace ento {
3030

3131
class AnalysisManager : public BugReporterData {
3232
AnalysisContextManager AnaCtxMgr;

include/clang/GR/PathSensitive/BasicValueFactory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace clang {
2626

27-
namespace GR {
27+
namespace ento {
2828

2929
class GRState;
3030

include/clang/GR/PathSensitive/BlockCounter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace clang {
2424

2525
class StackFrameContext;
2626

27-
namespace GR {
27+
namespace ento {
2828

2929
class BlockCounter {
3030
void* Data;

include/clang/GR/PathSensitive/Checker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace clang {
2626

27-
namespace GR {
27+
namespace ento {
2828

2929
class CheckerContext {
3030
ExplodedNodeSet &Dst;

include/clang/GR/PathSensitive/CheckerHelpers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace clang {
2020

21-
namespace GR {
21+
namespace ento {
2222

2323
bool containsMacro(const Stmt *S);
2424
bool containsEnum(const Stmt *S);

include/clang/GR/PathSensitive/CheckerVisitor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace clang {
1919

20-
namespace GR {
20+
namespace ento {
2121

2222
//===----------------------------------------------------------------------===//
2323
// Checker visitor interface. Used by subclasses of Checker to specify their

include/clang/GR/PathSensitive/ConstraintManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class APSInt;
2323

2424
namespace clang {
2525

26-
namespace GR {
26+
namespace ento {
2727

2828
class GRState;
2929
class GRStateManager;

include/clang/GR/PathSensitive/CoreEngine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace clang {
2626

27-
namespace GR {
27+
namespace ento {
2828

2929
//===----------------------------------------------------------------------===//
3030
/// CoreEngine - Implements the core logic of the graph-reachability

include/clang/GR/PathSensitive/Environment.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace clang {
2222

2323
class LiveVariables;
2424

25-
namespace GR {
25+
namespace ento {
2626

2727
class EnvironmentManager;
2828
class SValBuilder;

include/clang/GR/PathSensitive/ExplodedGraph.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace clang {
3636

3737
class CFG;
3838

39-
namespace GR {
39+
namespace ento {
4040

4141
class GRState;
4242
class ExplodedGraph;
@@ -378,8 +378,8 @@ class ExplodedNodeSet {
378378
// GraphTraits
379379

380380
namespace llvm {
381-
template<> struct GraphTraits<clang::GR::ExplodedNode*> {
382-
typedef clang::GR::ExplodedNode NodeType;
381+
template<> struct GraphTraits<clang::ento::ExplodedNode*> {
382+
typedef clang::ento::ExplodedNode NodeType;
383383
typedef NodeType::succ_iterator ChildIteratorType;
384384
typedef llvm::df_iterator<NodeType*> nodes_iterator;
385385

@@ -404,8 +404,8 @@ namespace llvm {
404404
}
405405
};
406406

407-
template<> struct GraphTraits<const clang::GR::ExplodedNode*> {
408-
typedef const clang::GR::ExplodedNode NodeType;
407+
template<> struct GraphTraits<const clang::ento::ExplodedNode*> {
408+
typedef const clang::ento::ExplodedNode NodeType;
409409
typedef NodeType::const_succ_iterator ChildIteratorType;
410410
typedef llvm::df_iterator<NodeType*> nodes_iterator;
411411

include/clang/GR/PathSensitive/ExprEngine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace clang {
3131

3232
class ObjCForCollectionStmt;
3333

34-
namespace GR {
34+
namespace ento {
3535

3636
class AnalysisManager;
3737
class Checker;

include/clang/GR/PathSensitive/ExprEngineBuilders.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace clang {
2121

22-
namespace GR {
22+
namespace ento {
2323

2424
class StmtNodeBuilderRef {
2525
ExplodedNodeSet &Dst;

include/clang/GR/PathSensitive/GRState.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class raw_ostream;
3131
namespace clang {
3232
class ASTContext;
3333

34-
namespace GR {
34+
namespace ento {
3535

3636
class GRStateManager;
3737
class Checker;

include/clang/GR/PathSensitive/GRStateTrait.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace llvm {
2727

2828
namespace clang {
2929

30-
namespace GR {
30+
namespace ento {
3131
template <typename T> struct GRStatePartialTrait;
3232

3333
// Partial-specialization for ImmutableMap.

include/clang/GR/PathSensitive/MemRegion.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace clang {
3434
class LocationContext;
3535
class StackFrameContext;
3636

37-
namespace GR {
37+
namespace ento {
3838

3939
class MemRegionManager;
4040
class MemSpaceRegion;
@@ -1068,7 +1068,7 @@ inline ASTContext& MemRegion::getContext() const {
10681068

10691069
namespace llvm {
10701070
static inline raw_ostream& operator<<(raw_ostream& os,
1071-
const clang::GR::MemRegion* R) {
1071+
const clang::ento::MemRegion* R) {
10721072
R->dumpToStream(os);
10731073
return os;
10741074
}

include/clang/GR/PathSensitive/SValBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace clang {
2525

26-
namespace GR {
26+
namespace ento {
2727

2828
class GRState;
2929

include/clang/GR/PathSensitive/SVals.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace llvm {
2929

3030
namespace clang {
3131

32-
namespace GR {
32+
namespace ento {
3333

3434
class CompoundValData;
3535
class LazyCompoundValData;
@@ -342,7 +342,7 @@ class ConcreteInt : public NonLoc {
342342
};
343343

344344
class LocAsInteger : public NonLoc {
345-
friend class GR::SValBuilder;
345+
friend class ento::SValBuilder;
346346

347347
explicit LocAsInteger(const std::pair<SVal, uintptr_t>& data) :
348348
NonLoc(LocAsIntegerKind, &data) {
@@ -376,7 +376,7 @@ class LocAsInteger : public NonLoc {
376376
};
377377

378378
class CompoundVal : public NonLoc {
379-
friend class GR::SValBuilder;
379+
friend class ento::SValBuilder;
380380

381381
explicit CompoundVal(const CompoundValData* D) : NonLoc(CompoundValKind, D) {}
382382

@@ -399,7 +399,7 @@ class CompoundVal : public NonLoc {
399399
};
400400

401401
class LazyCompoundVal : public NonLoc {
402-
friend class GR::SValBuilder;
402+
friend class ento::SValBuilder;
403403

404404
explicit LazyCompoundVal(const LazyCompoundValData *D)
405405
: NonLoc(LazyCompoundValKind, D) {}
@@ -419,7 +419,7 @@ class LazyCompoundVal : public NonLoc {
419419
}
420420
};
421421

422-
} // end namespace GR::nonloc
422+
} // end namespace ento::nonloc
423423

424424
//==------------------------------------------------------------------------==//
425425
// Subclasses of Loc.
@@ -505,14 +505,14 @@ class ConcreteInt : public Loc {
505505
}
506506
};
507507

508-
} // end GR::loc namespace
508+
} // end ento::loc namespace
509509
} // end GR namespace
510510

511511
} // end clang namespace
512512

513513
namespace llvm {
514514
static inline llvm::raw_ostream& operator<<(llvm::raw_ostream& os,
515-
clang::GR::SVal V) {
515+
clang::ento::SVal V) {
516516
V.dumpToStream(os);
517517
return os;
518518
}

include/clang/GR/PathSensitive/Store.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Expr;
2626
class ObjCIvarDecl;
2727
class StackFrameContext;
2828

29-
namespace GR {
29+
namespace ento {
3030

3131
/// Store - This opaque type encapsulates an immutable mapping from
3232
/// locations to values. At a high-level, it represents the symbolic

include/clang/GR/PathSensitive/SubEngine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CFGElement;
2222
class LocationContext;
2323
class Stmt;
2424

25-
namespace GR {
25+
namespace ento {
2626

2727
class AnalysisManager;
2828
class ExplodedNode;

include/clang/GR/PathSensitive/SummaryManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace clang {
2222

23-
namespace GR {
23+
namespace ento {
2424

2525
namespace summMgr {
2626

include/clang/GR/PathSensitive/SymbolManager.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace clang {
3131
class ASTContext;
3232
class StackFrameContext;
3333

34-
namespace GR {
34+
namespace ento {
3535
class BasicValueFactory;
3636
class MemRegion;
3737
class SubRegion;
@@ -481,7 +481,7 @@ class SymbolVisitor {
481481

482482
namespace llvm {
483483
static inline llvm::raw_ostream& operator<<(llvm::raw_ostream& os,
484-
const clang::GR::SymExpr *SE) {
484+
const clang::ento::SymExpr *SE) {
485485
SE->dumpToStream(os);
486486
return os;
487487
}

include/clang/GR/PathSensitive/TransferFuncs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace clang {
2323
class ObjCMessageExpr;
2424

25-
namespace GR {
25+
namespace ento {
2626
class ExplodedNode;
2727
class ExplodedNodeSet;
2828
class EndPathNodeBuilder;

include/clang/GR/PathSensitive/WorkList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace clang {
2222

2323
class CFGBlock;
2424

25-
namespace GR {
25+
namespace ento {
2626

2727
class ExplodedNode;
2828
class ExplodedNodeImpl;

lib/Analysis/CocoaConventions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "llvm/ADT/StringExtras.h"
1919

2020
using namespace clang;
21-
using namespace GR;
21+
using namespace ento;
2222

2323
using llvm::StringRef;
2424

0 commit comments

Comments
 (0)