diff options
Diffstat (limited to 'clang/include/clang')
| -rw-r--r-- | clang/include/clang/Analysis/Analyses/UninitializedValues.h | 3 | ||||
| -rw-r--r-- | clang/include/clang/Analysis/PathSensitive/AnalysisContext.h | 277 | ||||
| -rw-r--r-- | clang/include/clang/Checker/LocalCheckers.h (renamed from clang/include/clang/Analysis/LocalCheckers.h) | 3 | ||||
| -rw-r--r-- | clang/include/clang/Checker/ManagerRegistry.h (renamed from clang/include/clang/Analysis/ManagerRegistry.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathDiagnostic.h (renamed from clang/include/clang/Analysis/PathDiagnostic.h) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/AnalysisManager.h (renamed from clang/include/clang/Analysis/PathSensitive/AnalysisManager.h) | 6 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/BasicValueFactory.h (renamed from clang/include/clang/Analysis/PathSensitive/BasicValueFactory.h) | 4 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/BugReporter.h (renamed from clang/include/clang/Analysis/PathSensitive/BugReporter.h) | 6 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/BugType.h (renamed from clang/include/clang/Analysis/PathSensitive/BugType.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/Checker.h (renamed from clang/include/clang/Analysis/PathSensitive/Checker.h) | 6 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/CheckerVisitor.def (renamed from clang/include/clang/Analysis/PathSensitive/CheckerVisitor.def) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/CheckerVisitor.h (renamed from clang/include/clang/Analysis/PathSensitive/CheckerVisitor.h) | 10 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/Checkers/DereferenceChecker.h (renamed from clang/include/clang/Analysis/PathSensitive/Checkers/DereferenceChecker.h) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/ConstraintManager.h (renamed from clang/include/clang/Analysis/PathSensitive/ConstraintManager.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/Environment.h (renamed from clang/include/clang/Analysis/PathSensitive/Environment.h) | 4 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/ExplodedGraph.h (renamed from clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRAuditor.h (renamed from clang/include/clang/Analysis/PathSensitive/GRAuditor.h) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRBlockCounter.h (renamed from clang/include/clang/Analysis/PathSensitive/GRBlockCounter.h) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRCoreEngine.h (renamed from clang/include/clang/Analysis/PathSensitive/GRCoreEngine.h) | 10 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRExprEngine.h (renamed from clang/include/clang/Analysis/PathSensitive/GRExprEngine.h) | 14 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRExprEngineBuilders.h (renamed from clang/include/clang/Analysis/PathSensitive/GRExprEngineBuilders.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRSimpleAPICheck.h (renamed from clang/include/clang/Analysis/PathSensitive/GRSimpleAPICheck.h) | 4 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRState.h (renamed from clang/include/clang/Analysis/PathSensitive/GRState.h) | 10 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRStateTrait.h (renamed from clang/include/clang/Analysis/PathSensitive/GRStateTrait.h) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRSubEngine.h (renamed from clang/include/clang/Analysis/PathSensitive/GRSubEngine.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRTransferFuncs.h (renamed from clang/include/clang/Analysis/PathSensitive/GRTransferFuncs.h) | 6 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/GRWorkList.h (renamed from clang/include/clang/Analysis/PathSensitive/GRWorkList.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/MemRegion.h (renamed from clang/include/clang/Analysis/PathSensitive/MemRegion.h) | 4 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/SVals.h (renamed from clang/include/clang/Analysis/PathSensitive/SVals.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/SValuator.h (renamed from clang/include/clang/Analysis/PathSensitive/SValuator.h) | 2 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/Store.h (renamed from clang/include/clang/Analysis/PathSensitive/Store.h) | 6 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/SymbolManager.h (renamed from clang/include/clang/Analysis/PathSensitive/SymbolManager.h) | 0 | ||||
| -rw-r--r-- | clang/include/clang/Checker/PathSensitive/ValueManager.h (renamed from clang/include/clang/Analysis/PathSensitive/ValueManager.h) | 10 |
33 files changed, 62 insertions, 339 deletions
diff --git a/clang/include/clang/Analysis/Analyses/UninitializedValues.h b/clang/include/clang/Analysis/Analyses/UninitializedValues.h index 2b367b7e37f..cd771acb06a 100644 --- a/clang/include/clang/Analysis/Analyses/UninitializedValues.h +++ b/clang/include/clang/Analysis/Analyses/UninitializedValues.h @@ -70,5 +70,8 @@ public: void InitializeValues(const CFG& cfg); }; + +void CheckUninitializedValues(CFG& cfg, ASTContext& Ctx, Diagnostic& Diags, + bool FullUninitTaint=false); } // end namespace clang #endif diff --git a/clang/include/clang/Analysis/PathSensitive/AnalysisContext.h b/clang/include/clang/Analysis/PathSensitive/AnalysisContext.h deleted file mode 100644 index c82bb962fd1..00000000000 --- a/clang/include/clang/Analysis/PathSensitive/AnalysisContext.h +++ /dev/null @@ -1,277 +0,0 @@ -//=== AnalysisContext.h - Analysis context for Path Sens analysis --*- C++ -*-// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines AnalysisContext, a class that manages the analysis context -// data for path sensitive analysis. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_ANALYSIS_ANALYSISCONTEXT_H -#define LLVM_CLANG_ANALYSIS_ANALYSISCONTEXT_H - -#include "clang/AST/Decl.h" -#include "llvm/ADT/OwningPtr.h" -#include "llvm/ADT/FoldingSet.h" -#include "llvm/ADT/PointerUnion.h" -#include "llvm/ADT/DenseMap.h" -#include "llvm/Support/Allocator.h" - -namespace clang { - -class Decl; -class Stmt; -class CFG; -class CFGBlock; -class LiveVariables; -class ParentMap; -class ImplicitParamDecl; -class LocationContextManager; -class BlockDataRegion; -class StackFrameContext; - -/// AnalysisContext contains the context data for the function or method under -/// analysis. -class AnalysisContext { - const Decl *D; - - // AnalysisContext owns the following data. - CFG *cfg; - LiveVariables *liveness; - ParentMap *PM; - llvm::DenseMap<const BlockDecl*,void*> *ReferencedBlockVars; - llvm::BumpPtrAllocator A; - bool AddEHEdges; -public: - AnalysisContext(const Decl *d, bool addehedges = false) - : D(d), cfg(0), liveness(0), PM(0), ReferencedBlockVars(0), - AddEHEdges(addehedges) {} - - ~AnalysisContext(); - - ASTContext &getASTContext() { return D->getASTContext(); } - const Decl *getDecl() { return D; } - /// getAddEHEdges - Return true iff we are adding exceptional edges from - /// callExprs. If this is false, then try/catch statements and blocks - /// reachable from them can appear to be dead in the CFG, analysis passes must - /// cope with that. - bool getAddEHEdges() const { return AddEHEdges; } - Stmt *getBody(); - CFG *getCFG(); - ParentMap &getParentMap(); - LiveVariables *getLiveVariables(); - - typedef const VarDecl * const * referenced_decls_iterator; - - std::pair<referenced_decls_iterator, referenced_decls_iterator> - getReferencedBlockVars(const BlockDecl *BD); - - /// Return the ImplicitParamDecl* associated with 'self' if this - /// AnalysisContext wraps an ObjCMethodDecl. Returns NULL otherwise. - const ImplicitParamDecl *getSelfDecl() const; -}; - -class AnalysisContextManager { - typedef llvm::DenseMap<const Decl*, AnalysisContext*> ContextMap; - ContextMap Contexts; -public: - ~AnalysisContextManager(); - - AnalysisContext *getContext(const Decl *D); - - // Discard all previously created AnalysisContexts. - void clear(); -}; - -class LocationContext : public llvm::FoldingSetNode { -public: - enum ContextKind { StackFrame, Scope, Block }; - -private: - ContextKind Kind; - AnalysisContext *Ctx; - const LocationContext *Parent; - -protected: - LocationContext(ContextKind k, AnalysisContext *ctx, - const LocationContext *parent) - : Kind(k), Ctx(ctx), Parent(parent) {} - -public: - virtual ~LocationContext(); - - ContextKind getKind() const { return Kind; } - - AnalysisContext *getAnalysisContext() const { return Ctx; } - - const LocationContext *getParent() const { return Parent; } - - const Decl *getDecl() const { return getAnalysisContext()->getDecl(); } - - CFG *getCFG() const { return getAnalysisContext()->getCFG(); } - - LiveVariables *getLiveVariables() const { - return getAnalysisContext()->getLiveVariables(); - } - - ParentMap &getParentMap() const { - return getAnalysisContext()->getParentMap(); - } - - const ImplicitParamDecl *getSelfDecl() const { - return Ctx->getSelfDecl(); - } - - const StackFrameContext *getCurrentStackFrame() const; - const StackFrameContext * - getStackFrameForDeclContext(const DeclContext *DC) const; - - virtual void Profile(llvm::FoldingSetNodeID &ID) = 0; - - static bool classof(const LocationContext*) { return true; } - -public: - static void ProfileCommon(llvm::FoldingSetNodeID &ID, - ContextKind ck, - AnalysisContext *ctx, - const LocationContext *parent, - const void* data); -}; - -class StackFrameContext : public LocationContext { - // The callsite where this stack frame is established. - const Stmt *CallSite; - - // The parent block of the callsite. - const CFGBlock *Block; - - // The index of the callsite in the CFGBlock. - unsigned Index; - - friend class LocationContextManager; - StackFrameContext(AnalysisContext *ctx, const LocationContext *parent, - const Stmt *s, const CFGBlock *blk, unsigned idx) - : LocationContext(StackFrame, ctx, parent), CallSite(s), Block(blk), - Index(idx) {} - -public: - ~StackFrameContext() {} - - const Stmt *getCallSite() const { return CallSite; } - - const CFGBlock *getCallSiteBlock() const { return Block; } - - unsigned getIndex() const { return Index; } - - void Profile(llvm::FoldingSetNodeID &ID); - - static void Profile(llvm::FoldingSetNodeID &ID, AnalysisContext *ctx, - const LocationContext *parent, const Stmt *s, - const CFGBlock *blk, unsigned idx) { - ProfileCommon(ID, StackFrame, ctx, parent, s); - ID.AddPointer(blk); - ID.AddInteger(idx); - } - - static bool classof(const LocationContext* Ctx) { - return Ctx->getKind() == StackFrame; - } -}; - -class ScopeContext : public LocationContext { - const Stmt *Enter; - - friend class LocationContextManager; - ScopeContext(AnalysisContext *ctx, const LocationContext *parent, - const Stmt *s) - : LocationContext(Scope, ctx, parent), Enter(s) {} - -public: - ~ScopeContext() {} - - void Profile(llvm::FoldingSetNodeID &ID); - - static void Profile(llvm::FoldingSetNodeID &ID, AnalysisContext *ctx, - const LocationContext *parent, const Stmt *s) { - ProfileCommon(ID, Scope, ctx, parent, s); - } - - static bool classof(const LocationContext* Ctx) { - return Ctx->getKind() == Scope; - } -}; - -class BlockInvocationContext : public LocationContext { - llvm::PointerUnion<const BlockDataRegion *, const BlockDecl *> Data; - - friend class LocationContextManager; - - BlockInvocationContext(AnalysisContext *ctx, const LocationContext *parent, - const BlockDataRegion *br) - : LocationContext(Block, ctx, parent), Data(br) {} - - BlockInvocationContext(AnalysisContext *ctx, const LocationContext *parent, - const BlockDecl *bd) - : LocationContext(Block, ctx, parent), Data(bd) {} - -public: - ~BlockInvocationContext() {} - - const BlockDataRegion *getBlockRegion() const { - return Data.is<const BlockDataRegion*>() ? - Data.get<const BlockDataRegion*>() : 0; - } - - const BlockDecl *getBlockDecl() const; - - void Profile(llvm::FoldingSetNodeID &ID); - - static void Profile(llvm::FoldingSetNodeID &ID, AnalysisContext *ctx, - const LocationContext *parent, const BlockDataRegion *br){ - ProfileCommon(ID, Block, ctx, parent, br); - } - - static void Profile(llvm::FoldingSetNodeID &ID, AnalysisContext *ctx, - const LocationContext *parent, const BlockDecl *bd) { - ProfileCommon(ID, Block, ctx, parent, bd); - } - - static bool classof(const LocationContext* Ctx) { - return Ctx->getKind() == Block; - } -}; - -class LocationContextManager { - llvm::FoldingSet<LocationContext> Contexts; -public: - ~LocationContextManager(); - - const StackFrameContext *getStackFrame(AnalysisContext *ctx, - const LocationContext *parent, - const Stmt *s, const CFGBlock *blk, - unsigned idx); - - const ScopeContext *getScope(AnalysisContext *ctx, - const LocationContext *parent, - const Stmt *s); - - const BlockInvocationContext * - getBlockInvocation(AnalysisContext *ctx, const LocationContext *parent, - const BlockDataRegion *BR); - - /// Discard all previously created LocationContext objects. - void clear(); -private: - template <typename LOC, typename DATA> - const LOC *getLocationContext(AnalysisContext *ctx, - const LocationContext *parent, - const DATA *d); -}; - -} // end clang namespace -#endif diff --git a/clang/include/clang/Analysis/LocalCheckers.h b/clang/include/clang/Checker/LocalCheckers.h index 9c343e07864..b179c8eb6ca 100644 --- a/clang/include/clang/Analysis/LocalCheckers.h +++ b/clang/include/clang/Checker/LocalCheckers.h @@ -35,9 +35,6 @@ class GRExprEngine; void CheckDeadStores(CFG &cfg, LiveVariables &L, ParentMap &map, BugReporter& BR); -void CheckUninitializedValues(CFG& cfg, ASTContext& Ctx, Diagnostic& Diags, - bool FullUninitTaint=false); - GRTransferFuncs* MakeCFRefCountTF(ASTContext& Ctx, bool GCEnabled, const LangOptions& lopts); diff --git a/clang/include/clang/Analysis/ManagerRegistry.h b/clang/include/clang/Checker/ManagerRegistry.h index 972993855c2..ebfd28e1093 100644 --- a/clang/include/clang/Analysis/ManagerRegistry.h +++ b/clang/include/clang/Checker/ManagerRegistry.h @@ -14,7 +14,7 @@ #ifndef LLVM_CLANG_ANALYSIS_MANAGER_REGISTRY_H #define LLVM_CLANG_ANALYSIS_MANAGER_REGISTRY_H -#include "clang/Analysis/PathSensitive/GRState.h" +#include "clang/Checker/PathSensitive/GRState.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathDiagnostic.h b/clang/include/clang/Checker/PathDiagnostic.h index d380c45480c..d380c45480c 100644 --- a/clang/include/clang/Analysis/PathDiagnostic.h +++ b/clang/include/clang/Checker/PathDiagnostic.h diff --git a/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h b/clang/include/clang/Checker/PathSensitive/AnalysisManager.h index 8288864f2b6..f9bd7aec05c 100644 --- a/clang/include/clang/Analysis/PathSensitive/AnalysisManager.h +++ b/clang/include/clang/Checker/PathSensitive/AnalysisManager.h @@ -15,9 +15,9 @@ #ifndef LLVM_CLANG_ANALYSIS_ANALYSISMANAGER_H #define LLVM_CLANG_ANALYSIS_ANALYSISMANAGER_H -#include "clang/Analysis/PathSensitive/BugReporter.h" -#include "clang/Analysis/PathSensitive/AnalysisContext.h" -#include "clang/Analysis/PathDiagnostic.h" +#include "clang/Analysis/AnalysisContext.h" +#include "clang/Checker/PathSensitive/BugReporter.h" +#include "clang/Checker/PathDiagnostic.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/BasicValueFactory.h b/clang/include/clang/Checker/PathSensitive/BasicValueFactory.h index 12f0ce2d50b..1717c268d34 100644 --- a/clang/include/clang/Analysis/PathSensitive/BasicValueFactory.h +++ b/clang/include/clang/Checker/PathSensitive/BasicValueFactory.h @@ -16,8 +16,8 @@ #ifndef LLVM_CLANG_ANALYSIS_BASICVALUEFACTORY_H #define LLVM_CLANG_ANALYSIS_BASICVALUEFACTORY_H -#include "clang/Analysis/PathSensitive/SymbolManager.h" -#include "clang/Analysis/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/SymbolManager.h" +#include "clang/Checker/PathSensitive/SVals.h" #include "clang/AST/ASTContext.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/APSInt.h" diff --git a/clang/include/clang/Analysis/PathSensitive/BugReporter.h b/clang/include/clang/Checker/PathSensitive/BugReporter.h index 6f6681a3629..2e88d8efad8 100644 --- a/clang/include/clang/Analysis/PathSensitive/BugReporter.h +++ b/clang/include/clang/Checker/PathSensitive/BugReporter.h @@ -17,9 +17,9 @@ #include "clang/Basic/Diagnostic.h" #include "clang/Basic/SourceLocation.h" -#include "clang/Analysis/PathSensitive/GRState.h" -#include "clang/Analysis/PathSensitive/ExplodedGraph.h" -#include "clang/Analysis/PathSensitive/BugType.h" +#include "clang/Checker/PathSensitive/GRState.h" +#include "clang/Checker/PathSensitive/ExplodedGraph.h" +#include "clang/Checker/PathSensitive/BugType.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallString.h" diff --git a/clang/include/clang/Analysis/PathSensitive/BugType.h b/clang/include/clang/Checker/PathSensitive/BugType.h index b75a8189e54..db7a99f0e77 100644 --- a/clang/include/clang/Analysis/PathSensitive/BugType.h +++ b/clang/include/clang/Checker/PathSensitive/BugType.h @@ -14,7 +14,7 @@ #ifndef LLVM_CLANG_ANALYSIS_BUGTYPE #define LLVM_CLANG_ANALYSIS_BUGTYPE -#include "clang/Analysis/PathSensitive/BugReporter.h" +#include "clang/Checker/PathSensitive/BugReporter.h" #include <llvm/ADT/FoldingSet.h> #include <string> diff --git a/clang/include/clang/Analysis/PathSensitive/Checker.h b/clang/include/clang/Checker/PathSensitive/Checker.h index 924a8b11b09..d498044b82c 100644 --- a/clang/include/clang/Analysis/PathSensitive/Checker.h +++ b/clang/include/clang/Checker/PathSensitive/Checker.h @@ -15,9 +15,9 @@ #ifndef LLVM_CLANG_ANALYSIS_CHECKER #define LLVM_CLANG_ANALYSIS_CHECKER #include "clang/Analysis/Support/SaveAndRestore.h" -#include "clang/Analysis/PathSensitive/GRCoreEngine.h" -#include "clang/Analysis/PathSensitive/GRState.h" -#include "clang/Analysis/PathSensitive/GRExprEngine.h" +#include "clang/Checker/PathSensitive/GRCoreEngine.h" +#include "clang/Checker/PathSensitive/GRState.h" +#include "clang/Checker/PathSensitive/GRExprEngine.h" #include "clang/AST/ExprCXX.h" #include "clang/AST/ExprObjC.h" #include "clang/AST/StmtCXX.h" diff --git a/clang/include/clang/Analysis/PathSensitive/CheckerVisitor.def b/clang/include/clang/Checker/PathSensitive/CheckerVisitor.def index 7ec27efe519..7ec27efe519 100644 --- a/clang/include/clang/Analysis/PathSensitive/CheckerVisitor.def +++ b/clang/include/clang/Checker/PathSensitive/CheckerVisitor.def diff --git a/clang/include/clang/Analysis/PathSensitive/CheckerVisitor.h b/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h index 37ec8def50b..913a6c75bcc 100644 --- a/clang/include/clang/Analysis/PathSensitive/CheckerVisitor.h +++ b/clang/include/clang/Checker/PathSensitive/CheckerVisitor.h @@ -13,7 +13,7 @@ #ifndef LLVM_CLANG_ANALYSIS_CHECKERVISITOR #define LLVM_CLANG_ANALYSIS_CHECKERVISITOR -#include "clang/Analysis/PathSensitive/Checker.h" +#include "clang/Checker/PathSensitive/Checker.h" namespace clang { @@ -57,7 +57,7 @@ public: case Stmt::NAME ## Class:\ static_cast<ImplClass*>(this)->PreVisit ## NAME(C,static_cast<const NAME*>(S));\ break; -#include "clang/Analysis/PathSensitive/CheckerVisitor.def" +#include "clang/Checker/PathSensitive/CheckerVisitor.def" } } @@ -76,7 +76,7 @@ case Stmt::NAME ## Class:\ static_cast<ImplClass*>(this)->\ PostVisit ## NAME(C,static_cast<const NAME*>(S));\ break; -#include "clang/Analysis/PathSensitive/CheckerVisitor.def" +#include "clang/Checker/PathSensitive/CheckerVisitor.def" } } @@ -87,13 +87,13 @@ break; void PreVisit ## NAME(CheckerContext &C, const NAME* S) {\ PreVisit ## FALLBACK(C, S);\ } -#include "clang/Analysis/PathSensitive/CheckerVisitor.def" +#include "clang/Checker/PathSensitive/CheckerVisitor.def" #define POSTVISIT(NAME, FALLBACK) \ void PostVisit ## NAME(CheckerContext &C, const NAME* S) {\ PostVisit ## FALLBACK(C, S);\ } -#include "clang/Analysis/PathSensitive/CheckerVisitor.def" +#include "clang/Checker/PathSensitive/CheckerVisitor.def" }; } // end clang namespace diff --git a/clang/include/clang/Analysis/PathSensitive/Checkers/DereferenceChecker.h b/clang/include/clang/Checker/PathSensitive/Checkers/DereferenceChecker.h index a84183e7f27..a84183e7f27 100644 --- a/clang/include/clang/Analysis/PathSensitive/Checkers/DereferenceChecker.h +++ b/clang/include/clang/Checker/PathSensitive/Checkers/DereferenceChecker.h diff --git a/clang/include/clang/Analysis/PathSensitive/ConstraintManager.h b/clang/include/clang/Checker/PathSensitive/ConstraintManager.h index c8292802ae9..ce7d1b38171 100644 --- a/clang/include/clang/Analysis/PathSensitive/ConstraintManager.h +++ b/clang/include/clang/Checker/PathSensitive/ConstraintManager.h @@ -15,7 +15,7 @@ #define LLVM_CLANG_ANALYSIS_CONSTRAINT_MANAGER_H // FIXME: Typedef LiveSymbolsTy/DeadSymbolsTy at a more appropriate place. -#include "clang/Analysis/PathSensitive/Store.h" +#include "clang/Checker/PathSensitive/Store.h" namespace llvm { class APSInt; diff --git a/clang/include/clang/Analysis/PathSensitive/Environment.h b/clang/include/clang/Checker/PathSensitive/Environment.h index 6d5c5678e59..0852c31faeb 100644 --- a/clang/include/clang/Analysis/PathSensitive/Environment.h +++ b/clang/include/clang/Checker/PathSensitive/Environment.h @@ -16,11 +16,11 @@ // For using typedefs in StoreManager. Should find a better place for these // typedefs. -#include "clang/Analysis/PathSensitive/Store.h" +#include "clang/Checker/PathSensitive/Store.h" #include "llvm/ADT/ImmutableMap.h" #include "llvm/ADT/SmallVector.h" -#include "clang/Analysis/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/SVals.h" #include "llvm/Support/Allocator.h" #include "llvm/ADT/FoldingSet.h" diff --git a/clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/clang/include/clang/Checker/PathSensitive/ExplodedGraph.h index fb5e1b8a415..d6c4436c594 100644 --- a/clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h +++ b/clang/include/clang/Checker/PathSensitive/ExplodedGraph.h @@ -16,7 +16,7 @@ #define LLVM_CLANG_ANALYSIS_EXPLODEDGRAPH #include "clang/Analysis/ProgramPoint.h" -#include "clang/Analysis/PathSensitive/AnalysisContext.h" +#include "clang/Analysis/AnalysisContext.h" #include "clang/AST/Decl.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/FoldingSet.h" diff --git a/clang/include/clang/Analysis/PathSensitive/GRAuditor.h b/clang/include/clang/Checker/PathSensitive/GRAuditor.h index 015c82e80bb..015c82e80bb 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRAuditor.h +++ b/clang/include/clang/Checker/PathSensitive/GRAuditor.h diff --git a/clang/include/clang/Analysis/PathSensitive/GRBlockCounter.h b/clang/include/clang/Checker/PathSensitive/GRBlockCounter.h index 67ed9532db0..67ed9532db0 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRBlockCounter.h +++ b/clang/include/clang/Checker/PathSensitive/GRBlockCounter.h diff --git a/clang/include/clang/Analysis/PathSensitive/GRCoreEngine.h b/clang/include/clang/Checker/PathSensitive/GRCoreEngine.h index 74f7a147b84..6da45815f99 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRCoreEngine.h +++ b/clang/include/clang/Checker/PathSensitive/GRCoreEngine.h @@ -16,11 +16,11 @@ #define LLVM_CLANG_ANALYSIS_GRENGINE #include "clang/AST/Expr.h" -#include "clang/Analysis/PathSensitive/ExplodedGraph.h" -#include "clang/Analysis/PathSensitive/GRWorkList.h" -#include "clang/Analysis/PathSensitive/GRBlockCounter.h" -#include "clang/Analysis/PathSensitive/GRAuditor.h" -#include "clang/Analysis/PathSensitive/GRSubEngine.h" +#include "clang/Checker/PathSensitive/ExplodedGraph.h" +#include "clang/Checker/PathSensitive/GRWorkList.h" +#include "clang/Checker/PathSensitive/GRBlockCounter.h" +#include "clang/Checker/PathSensitive/GRAuditor.h" +#include "clang/Checker/PathSensitive/GRSubEngine.h" #include "llvm/ADT/OwningPtr.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/GRExprEngine.h b/clang/include/clang/Checker/PathSensitive/GRExprEngine.h index df90ad9f7f0..693d7cdb4f1 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRExprEngine.h +++ b/clang/include/clang/Checker/PathSensitive/GRExprEngine.h @@ -16,13 +16,13 @@ #ifndef LLVM_CLANG_ANALYSIS_GREXPRENGINE #define LLVM_CLANG_ANALYSIS_GREXPRENGINE -#include "clang/Analysis/PathSensitive/AnalysisManager.h" -#include "clang/Analysis/PathSensitive/GRSubEngine.h" -#include "clang/Analysis/PathSensitive/GRCoreEngine.h" -#include "clang/Analysis/PathSensitive/GRState.h" -#include "clang/Analysis/PathSensitive/GRSimpleAPICheck.h" -#include "clang/Analysis/PathSensitive/GRTransferFuncs.h" -#include "clang/Analysis/PathSensitive/BugReporter.h" +#include "clang/Checker/PathSensitive/AnalysisManager.h" +#include "clang/Checker/PathSensitive/GRSubEngine.h" +#include "clang/Checker/PathSensitive/GRCoreEngine.h" +#include "clang/Checker/PathSensitive/GRState.h" +#include "clang/Checker/PathSensitive/GRSimpleAPICheck.h" +#include "clang/Checker/PathSensitive/GRTransferFuncs.h" +#include "clang/Checker/PathSensitive/BugReporter.h" #include "clang/AST/Type.h" #include "clang/AST/ExprObjC.h" #include "clang/AST/ExprCXX.h" diff --git a/clang/include/clang/Analysis/PathSensitive/GRExprEngineBuilders.h b/clang/include/clang/Checker/PathSensitive/GRExprEngineBuilders.h index 60db406cd13..5503412f7e4 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRExprEngineBuilders.h +++ b/clang/include/clang/Checker/PathSensitive/GRExprEngineBuilders.h @@ -14,7 +14,7 @@ #ifndef LLVM_CLANG_ANALYSIS_GREXPRENGINE_BUILDERS #define LLVM_CLANG_ANALYSIS_GREXPRENGINE_BUILDERS -#include "clang/Analysis/PathSensitive/GRExprEngine.h" +#include "clang/Checker/PathSensitive/GRExprEngine.h" #include "clang/Analysis/Support/SaveAndRestore.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/GRSimpleAPICheck.h b/clang/include/clang/Checker/PathSensitive/GRSimpleAPICheck.h index 978ff0889e6..383463b822c 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRSimpleAPICheck.h +++ b/clang/include/clang/Checker/PathSensitive/GRSimpleAPICheck.h @@ -16,8 +16,8 @@ #ifndef LLVM_CLANG_ANALYSIS_GRAPICHECKS #define LLVM_CLANG_ANALYSIS_GRAPICHECKS -#include "clang/Analysis/PathSensitive/GRAuditor.h" -#include "clang/Analysis/PathSensitive/GRState.h" +#include "clang/Checker/PathSensitive/GRAuditor.h" +#include "clang/Checker/PathSensitive/GRState.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/GRState.h b/clang/include/clang/Checker/PathSensitive/GRState.h index 11cdac0e96d..947db6e46c5 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRState.h +++ b/clang/include/clang/Checker/PathSensitive/GRState.h @@ -16,11 +16,11 @@ // FIXME: Reduce the number of includes. -#include "clang/Analysis/PathSensitive/Environment.h" -#include "clang/Analysis/PathSensitive/Store.h" -#include "clang/Analysis/PathSensitive/ConstraintManager.h" -#include "clang/Analysis/PathSensitive/ValueManager.h" -#include "clang/Analysis/PathSensitive/GRCoreEngine.h" +#include "clang/Checker/PathSensitive/Environment.h" +#include "clang/Checker/PathSensitive/Store.h" +#include "clang/Checker/PathSensitive/ConstraintManager.h" +#include "clang/Checker/PathSensitive/ValueManager.h" +#include "clang/Checker/PathSensitive/GRCoreEngine.h" #include "clang/AST/Expr.h" #include "clang/AST/Decl.h" #include "clang/AST/ASTContext.h" diff --git a/clang/include/clang/Analysis/PathSensitive/GRStateTrait.h b/clang/include/clang/Checker/PathSensitive/GRStateTrait.h index 5189a1f5aa7..5189a1f5aa7 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRStateTrait.h +++ b/clang/include/clang/Checker/PathSensitive/GRStateTrait.h diff --git a/clang/include/clang/Analysis/PathSensitive/GRSubEngine.h b/clang/include/clang/Checker/PathSensitive/GRSubEngine.h index 5b383fae9bd..ce57c2c68b4 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRSubEngine.h +++ b/clang/include/clang/Checker/PathSensitive/GRSubEngine.h @@ -13,7 +13,7 @@ #ifndef LLVM_CLANG_ANALYSIS_GRSUBENGINE_H #define LLVM_CLANG_ANALYSIS_GRSUBENGINE_H -#include "clang/Analysis/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/SVals.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/GRTransferFuncs.h b/clang/include/clang/Checker/PathSensitive/GRTransferFuncs.h index b058460a493..04634effd58 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRTransferFuncs.h +++ b/clang/include/clang/Checker/PathSensitive/GRTransferFuncs.h @@ -15,9 +15,9 @@ #ifndef LLVM_CLANG_ANALYSIS_GRTF #define LLVM_CLANG_ANALYSIS_GRTF -#include "clang/Analysis/PathSensitive/SVals.h" -#include "clang/Analysis/PathSensitive/GRCoreEngine.h" -#include "clang/Analysis/PathSensitive/GRState.h" +#include "clang/Checker/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/GRCoreEngine.h" +#include "clang/Checker/PathSensitive/GRState.h" #include <vector> namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/GRWorkList.h b/clang/include/clang/Checker/PathSensitive/GRWorkList.h index 857fa316911..b8f90fa1eea 100644 --- a/clang/include/clang/Analysis/PathSensitive/GRWorkList.h +++ b/clang/include/clang/Checker/PathSensitive/GRWorkList.h @@ -15,7 +15,7 @@ #ifndef LLVM_CLANG_ANALYSIS_GRWORKLIST #define LLVM_CLANG_ANALYSIS_GRWORKLIST -#include "clang/Analysis/PathSensitive/GRBlockCounter.h" +#include "clang/Checker/PathSensitive/GRBlockCounter.h" #include <cstddef> namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/MemRegion.h b/clang/include/clang/Checker/PathSensitive/MemRegion.h index 3bcedbefd65..e1b21b16e2d 100644 --- a/clang/include/clang/Analysis/PathSensitive/MemRegion.h +++ b/clang/include/clang/Checker/PathSensitive/MemRegion.h @@ -18,8 +18,8 @@ #include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" -#include "clang/Analysis/PathSensitive/SymbolManager.h" -#include "clang/Analysis/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/SymbolManager.h" +#include "clang/Checker/PathSensitive/SVals.h" #include "clang/AST/ASTContext.h" #include "llvm/Support/Casting.h" #include "llvm/ADT/FoldingSet.h" diff --git a/clang/include/clang/Analysis/PathSensitive/SVals.h b/clang/include/clang/Checker/PathSensitive/SVals.h index 9206817989d..e04f8dc999a 100644 --- a/clang/include/clang/Analysis/PathSensitive/SVals.h +++ b/clang/include/clang/Checker/PathSensitive/SVals.h @@ -15,7 +15,7 @@ #ifndef LLVM_CLANG_ANALYSIS_RVALUE_H #define LLVM_CLANG_ANALYSIS_RVALUE_H -#include "clang/Analysis/PathSensitive/SymbolManager.h" +#include "clang/Checker/PathSensitive/SymbolManager.h" #include "llvm/Support/Casting.h" #include "llvm/ADT/ImmutableList.h" diff --git a/clang/include/clang/Analysis/PathSensitive/SValuator.h b/clang/include/clang/Checker/PathSensitive/SValuator.h index 4a4b502c627..74abe679123 100644 --- a/clang/include/clang/Analysis/PathSensitive/SValuator.h +++ b/clang/include/clang/Checker/PathSensitive/SValuator.h @@ -16,7 +16,7 @@ #define LLVM_CLANG_ANALYSIS_SVALUATOR #include "clang/AST/Expr.h" -#include "clang/Analysis/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/SVals.h" namespace clang { diff --git a/clang/include/clang/Analysis/PathSensitive/Store.h b/clang/include/clang/Checker/PathSensitive/Store.h index 5606df0014f..7966fed5fb6 100644 --- a/clang/include/clang/Analysis/PathSensitive/Store.h +++ b/clang/include/clang/Checker/PathSensitive/Store.h @@ -14,9 +14,9 @@ #ifndef LLVM_CLANG_ANALYSIS_STORE_H #define LLVM_CLANG_ANALYSIS_STORE_H -#include "clang/Analysis/PathSensitive/MemRegion.h" -#include "clang/Analysis/PathSensitive/SVals.h" -#include "clang/Analysis/PathSensitive/ValueManager.h" +#include "clang/Checker/PathSensitive/MemRegion.h" +#include "clang/Checker/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/ValueManager.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" diff --git a/clang/include/clang/Analysis/PathSensitive/SymbolManager.h b/clang/include/clang/Checker/PathSensitive/SymbolManager.h index 8eb31964795..8eb31964795 100644 --- a/clang/include/clang/Analysis/PathSensitive/SymbolManager.h +++ b/clang/include/clang/Checker/PathSensitive/SymbolManager.h diff --git a/clang/include/clang/Analysis/PathSensitive/ValueManager.h b/clang/include/clang/Checker/PathSensitive/ValueManager.h index 9cec3c421fb..0141cefb01c 100644 --- a/clang/include/clang/Analysis/PathSensitive/ValueManager.h +++ b/clang/include/clang/Checker/PathSensitive/ValueManager.h @@ -17,11 +17,11 @@ #define LLVM_CLANG_ANALYSIS_AGGREGATE_VALUE_MANAGER_H #include "llvm/ADT/OwningPtr.h" -#include "clang/Analysis/PathSensitive/MemRegion.h" -#include "clang/Analysis/PathSensitive/SVals.h" -#include "clang/Analysis/PathSensitive/BasicValueFactory.h" -#include "clang/Analysis/PathSensitive/SymbolManager.h" -#include "clang/Analysis/PathSensitive/SValuator.h" +#include "clang/Checker/PathSensitive/MemRegion.h" +#include "clang/Checker/PathSensitive/SVals.h" +#include "clang/Checker/PathSensitive/BasicValueFactory.h" +#include "clang/Checker/PathSensitive/SymbolManager.h" +#include "clang/Checker/PathSensitive/SValuator.h" namespace llvm { class BumpPtrAllocator; } |

