clang 20.0.0git
|
Represents a field chain. More...
Public Types | |
using | FieldChain = llvm::ImmutableList< const FieldNode & > |
Public Member Functions | |
FieldChainInfo ()=delete | |
FieldChainInfo (FieldChain::Factory &F) | |
FieldChainInfo (const FieldChainInfo &Other)=default | |
template<class FieldNodeT > | |
FieldChainInfo | add (const FieldNodeT &FN) |
Constructs a new FieldChainInfo object with FN appended. | |
template<class FieldNodeT > | |
FieldChainInfo | replaceHead (const FieldNodeT &FN) |
Constructs a new FieldChainInfo object with FN as the new head of the list. | |
bool | contains (const FieldRegion *FR) const |
bool | isEmpty () const |
const FieldNode & | getHead () const |
const FieldRegion * | getUninitRegion () const |
void | printNoteMsg (llvm::raw_ostream &Out) const |
Represents a field chain.
A field chain is a list of fields where the first element of the chain is the object under checking (not stored), and every other element is a field, and the element that precedes it is the object that contains it.
Note that this class is immutable (essentially a wrapper around an ImmutableList), new FieldChainInfo objects may be created by member functions such as add() and replaceHead().
Definition at line 160 of file UninitializedObject.h.
using clang::ento::FieldChainInfo::FieldChain = llvm::ImmutableList<const FieldNode &> |
Definition at line 162 of file UninitializedObject.h.
|
delete |
|
inline |
Definition at line 175 of file UninitializedObject.h.
|
default |
|
inline |
Constructs a new FieldChainInfo object with FN
appended.
Definition at line 337 of file UninitializedObject.h.
References contains().
Referenced by replaceHead().
bool FieldChainInfo::contains | ( | const FieldRegion * | FR | ) | const |
Definition at line 391 of file UninitializedObjectChecker.cpp.
References Node.
Referenced by add().
|
inline |
Definition at line 188 of file UninitializedObject.h.
Referenced by getUninitRegion(), and printNoteMsg().
|
inline |
Definition at line 189 of file UninitializedObject.h.
References getHead(), and clang::ento::FieldNode::getRegion().
|
inline |
Definition at line 186 of file UninitializedObject.h.
Referenced by printNoteMsg().
void FieldChainInfo::printNoteMsg | ( | llvm::raw_ostream & | Out | ) | const |
Definition at line 419 of file UninitializedObjectChecker.cpp.
References getHead(), isEmpty(), Node, clang::ento::FieldNode::printNode(), clang::ento::FieldNode::printNoteMsg(), and printTail().
|
inline |
Constructs a new FieldChainInfo object with FN
as the new head of the list.
Definition at line 348 of file UninitializedObject.h.
References add().