clang 20.0.0git
|
Represents a single point (AST node) in the program that requires attention during construction of an object. More...
#include "clang/Analysis/ConstructionContext.h"
Public Types | |
enum | ItemKind { VariableKind , NewAllocatorKind , ReturnKind , MaterializationKind , TemporaryDestructorKind , ElidedDestructorKind , ElidableConstructorKind , ArgumentKind , LambdaCaptureKind , STATEMENT_WITH_INDEX_KIND_BEGIN = ArgumentKind , STATEMENT_WITH_INDEX_KIND_END = LambdaCaptureKind , STATEMENT_KIND_BEGIN = VariableKind , STATEMENT_KIND_END = LambdaCaptureKind , InitializerKind , INITIALIZER_KIND_BEGIN = InitializerKind , INITIALIZER_KIND_END = InitializerKind } |
Static Public Member Functions | |
static LLVM_DUMP_METHOD StringRef | getKindAsString (ItemKind K) |
Represents a single point (AST node) in the program that requires attention during construction of an object.
ConstructionContext would be represented as a list of such items.
Definition at line 28 of file ConstructionContext.h.
Definition at line 30 of file ConstructionContext.h.
|
inline |
Definition at line 90 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 93 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 96 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 99 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 102 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 107 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 110 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 113 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 116 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 119 of file ConstructionContext.h.
References Data.
Definition at line 123 of file ConstructionContext.h.
|
inline |
Definition at line 130 of file ConstructionContext.h.
References Data.
|
inline |
Definition at line 133 of file ConstructionContext.h.
References Data.
|
inline |
The construction site is not necessarily a statement.
It may also be a CXXCtorInitializer, which means that a member variable is being constructed during initialization of the object that contains it.
Definition at line 158 of file ConstructionContext.h.
References Data.
Referenced by clang::ConstructionContext::createFromLayers().
|
inline |
If a single trigger statement triggers multiple constructors, they are usually being enumerated.
This covers function argument constructors triggered by a call-expression and items in an initializer list triggered by an init-list-expression.
Definition at line 167 of file ConstructionContext.h.
Referenced by clang::ConstructionContext::createFromLayers().
|
inline |
Definition at line 136 of file ConstructionContext.h.
Referenced by clang::ConstructionContext::createFromLayers(), and getKindAsString().
|
inline |
Definition at line 138 of file ConstructionContext.h.
References getKind(), and getKindAsString().
Referenced by getKindAsString().
|
inlinestatic |
Definition at line 49 of file ConstructionContext.h.
References ArgumentKind, ElidableConstructorKind, ElidedDestructorKind, InitializerKind, LambdaCaptureKind, MaterializationKind, NewAllocatorKind, ReturnKind, TemporaryDestructorKind, and VariableKind.
|
inline |
The construction site - the statement that triggered the construction for one of its parts.
For instance, stack variable declaration statement triggers construction of itself or its elements if it's an array, new-expression triggers construction of the newly allocated object(s).
Definition at line 146 of file ConstructionContext.h.
References Data.
Referenced by clang::ConstructionContext::createFromLayers(), and getStmtOrNull().
|
inline |
Definition at line 151 of file ConstructionContext.h.
References getStmt().
|
inline |
Definition at line 188 of file ConstructionContext.h.
References Data, and clang::Other.
|
inline |
Definition at line 180 of file ConstructionContext.h.
References Data, and clang::Other.
|
inline |
Definition at line 174 of file ConstructionContext.h.