forked from OSchip/llvm-project
Fix header issues.
Several headers would fail to compile if other headers were not previously included. The usual issue is that a class is forward declared, but the full definition is needed. The requirement for the definition is use of isa/dyn_cast or calling functions of pointer-packed data types such as DenseMap or PointerIntPair. Add missing includes to these headers. SVals.h required an out-of-line method definition in the .cpp file to avoid circular inclusion of headers with BasicValueFactory.h llvm-svn: 350913
This commit is contained in:
parent
8047362129
commit
f8b8b39c60
|
@ -15,6 +15,7 @@
|
|||
#ifndef LLVM_CLANG_AST_ASTSTRUCTURALEQUIVALENCE_H
|
||||
#define LLVM_CLANG_AST_ASTSTRUCTURALEQUIVALENCE_H
|
||||
|
||||
#include "clang/AST/DeclBase.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#define LLVM_CLANG_AST_BASESUBOBJECT_H
|
||||
|
||||
#include "clang/AST/CharUnits.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
||||
#include "llvm/ADT/DenseMapInfo.h"
|
||||
#include "llvm/Support/type_traits.h"
|
||||
#include <cstdint>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#ifndef LLVM_CLANG_AST_MANGLE_H
|
||||
#define LLVM_CLANG_AST_MANGLE_H
|
||||
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/Type.h"
|
||||
#include "clang/Basic/ABI.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#ifndef LLVM_CLANG_AST_TEMPLATENAME_H
|
||||
#define LLVM_CLANG_AST_TEMPLATENAME_H
|
||||
|
||||
#include "clang/AST/NestedNameSpecifier.h"
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/ADT/PointerIntPair.h"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "clang/Analysis/Support/BumpVector.h"
|
||||
#include "clang/AST/ExprCXX.h"
|
||||
#include "clang/AST/ExprObjC.h"
|
||||
|
||||
namespace clang {
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#ifndef LLVM_CLANG_LEX_PREPROCESSINGRECORD_H
|
||||
#define LLVM_CLANG_LEX_PREPROCESSINGRECORD_H
|
||||
|
||||
#include "clang/Basic/IdentifierTable.h"
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/Lex/PPCallbacks.h"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#ifndef LLVM_CLANG_SEMA_SCOPE_H
|
||||
#define LLVM_CLANG_SEMA_SCOPE_H
|
||||
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "llvm/ADT/PointerIntPair.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "clang/AST/Expr.h"
|
||||
#include "clang/AST/ExprObjC.h"
|
||||
#include "clang/AST/Type.h"
|
||||
#include "clang/Analysis/AnalysisDeclContext.h"
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.h"
|
||||
|
|
|
@ -530,9 +530,7 @@ public:
|
|||
return PTMDataType::getFromOpaqueValue(const_cast<void *>(Data));
|
||||
}
|
||||
|
||||
bool isNullMemberPointer() const {
|
||||
return getPTMData().isNull();
|
||||
}
|
||||
bool isNullMemberPointer() const;
|
||||
|
||||
const DeclaratorDecl *getDecl() const;
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H
|
||||
#define LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H
|
||||
|
||||
#include "clang/AST/Expr.h"
|
||||
#include "clang/AST/Type.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/IR/Type.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#define LLVM_CLANG_LIB_CODEGEN_CGOPENMPRUNTIME_H
|
||||
|
||||
#include "CGValue.h"
|
||||
#include "clang/AST/DeclOpenMP.h"
|
||||
#include "clang/AST/Type.h"
|
||||
#include "clang/Basic/OpenMPKinds.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#ifndef LLVM_CLANG_LIB_CODEGEN_VARBYPASSDETECTOR_H
|
||||
#define LLVM_CLANG_LIB_CODEGEN_VARBYPASSDETECTOR_H
|
||||
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
|
|
@ -171,6 +171,10 @@ const TypedValueRegion *nonloc::LazyCompoundVal::getRegion() const {
|
|||
return static_cast<const LazyCompoundValData*>(Data)->getRegion();
|
||||
}
|
||||
|
||||
bool nonloc::PointerToMember::isNullMemberPointer() const {
|
||||
return getPTMData().isNull();
|
||||
}
|
||||
|
||||
const DeclaratorDecl *nonloc::PointerToMember::getDecl() const {
|
||||
const auto PTMD = this->getPTMData();
|
||||
if (PTMD.isNull())
|
||||
|
|
Loading…
Reference in New Issue