forked from OSchip/llvm-project
Header file cleanups: reduce number of includes; move ValueState.h into include directory tree.
llvm-svn: 47661
This commit is contained in:
parent
83263b8cfb
commit
c025841dd4
|
@ -14,10 +14,13 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Analysis/PathSensitive/GRExprEngine.h"
|
||||
#include "clang/Analysis/PathSensitive/GRTransferFuncs.h"
|
||||
|
||||
#include "llvm/Support/Streams.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/GraphWriter.h"
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
using namespace clang;
|
||||
using llvm::dyn_cast;
|
||||
using llvm::cast;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "GRSimpleVals.h"
|
||||
#include "ValueState.h"
|
||||
#include "clang/Analysis/PathSensitive/ValueState.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "ValueState.h"
|
||||
#include "clang/Analysis/PathSensitive/ValueState.h"
|
||||
#include "llvm/ADT/SmallSet.h"
|
||||
|
||||
using namespace clang;
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "clang/Analysis/PathSensitive/GRBlockCounter.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
|
||||
|
||||
namespace clang {
|
||||
|
||||
class GRStmtNodeBuilderImpl;
|
||||
|
|
|
@ -18,28 +18,6 @@
|
|||
#include "clang/Analysis/PathSensitive/GRCoreEngine.h"
|
||||
#include "clang/Analysis/PathSensitive/GRTransferFuncs.h"
|
||||
|
||||
#include "clang/AST/Expr.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/Analysis/Analyses/LiveVariables.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/ADT/APSInt.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/ADT/ImmutableMap.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "llvm/Support/GraphWriter.h"
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
namespace clang {
|
||||
|
||||
class GRExprEngine {
|
||||
|
|
|
@ -25,8 +25,6 @@ namespace llvm {
|
|||
}
|
||||
|
||||
namespace clang {
|
||||
class ASTContext;
|
||||
|
||||
|
||||
class ValueManager {
|
||||
typedef llvm::FoldingSet<llvm::FoldingSetNodeWrapper<llvm::APSInt> >
|
||||
|
@ -55,15 +53,13 @@ public:
|
|||
SourceLocation Loc = SourceLocation());
|
||||
|
||||
inline const llvm::APSInt& getZeroWithPtrWidth() {
|
||||
return getValue( 0,
|
||||
Ctx.getTypeSize(Ctx.VoidPtrTy, SourceLocation()),
|
||||
true );
|
||||
return getValue(0, Ctx.getTypeSize(Ctx.VoidPtrTy, SourceLocation()), true);
|
||||
}
|
||||
|
||||
inline const llvm::APSInt& getTruthValue(bool b) {
|
||||
return getValue( b ? 1 : 0,
|
||||
return getValue(b ? 1 : 0,
|
||||
Ctx.getTypeSize(Ctx.IntTy, SourceLocation()),
|
||||
false );
|
||||
false);
|
||||
}
|
||||
|
||||
const SymIntConstraint& getConstraint(SymbolID sym, BinaryOperator::Opcode Op,
|
||||
|
|
Loading…
Reference in New Issue