clang 20.0.0git
|
Searches for and stores uninitialized fields in a non-union object. More...
Public Member Functions | |
FindUninitializedFields (ProgramStateRef State, const TypedValueRegion *const R, const UninitObjCheckerOptions &Opts) | |
Constructs the FindUninitializedField object, searches for and stores uninitialized fields in R. | |
std::pair< ProgramStateRef, const UninitFieldMap & > | getResults () |
Returns with the modified state and a map of (uninitialized region, note message) pairs. | |
bool | isAnyFieldInitialized () |
Returns whether the analyzed region contains at least one initialized field. | |
Searches for and stores uninitialized fields in a non-union object.
Definition at line 197 of file UninitializedObject.h.
FindUninitializedFields::FindUninitializedFields | ( | ProgramStateRef | State, |
const TypedValueRegion *const | R, | ||
const UninitObjCheckerOptions & | Opts | ||
) |
Constructs the FindUninitializedField object, searches for and stores uninitialized fields in R.
Definition at line 224 of file UninitializedObjectChecker.cpp.
References isAnyFieldInitialized(), and clang::ento::UninitObjCheckerOptions::IsPedantic.
|
inline |
Returns with the modified state and a map of (uninitialized region, note message) pairs.
Definition at line 227 of file UninitializedObject.h.
|
inline |
Returns whether the analyzed region contains at least one initialized field.
Note that this includes subfields as well, not just direct ones, and will return false if an uninitialized pointee is found with CheckPointeeInitialization enabled.
Definition at line 235 of file UninitializedObject.h.
Referenced by FindUninitializedFields().