diff options
author | Richard Trieu <rtrieu@google.com> | 2019-01-11 01:32:35 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-01-11 01:32:35 +0000 |
commit | f8b8b39c60f8d6558a38806c785f824d1b3174c0 (patch) | |
tree | 15928a9bd485ab4e6c8f51c3156a8abbc2e14eef /clang/lib/StaticAnalyzer/Core/SVals.cpp | |
parent | 80473621294fa8cb0e5639df032397e5bd6537a7 (diff) | |
download | bcm5719-llvm-f8b8b39c60f8d6558a38806c785f824d1b3174c0.tar.gz bcm5719-llvm-f8b8b39c60f8d6558a38806c785f824d1b3174c0.zip |
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
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/SVals.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/SVals.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/SVals.cpp b/clang/lib/StaticAnalyzer/Core/SVals.cpp index b32be9e82d4..933c5c33007 100644 --- a/clang/lib/StaticAnalyzer/Core/SVals.cpp +++ b/clang/lib/StaticAnalyzer/Core/SVals.cpp @@ -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()) |