|
clang 22.0.0git
|
A use of a variable, which might be uninitialized. More...
#include "clang/Analysis/Analyses/UninitializedValues.h"
Classes | |
| struct | Branch |
Public Types | |
| enum | Kind { Maybe , Sometimes , AfterDecl , AfterCall , Always } |
| The kind of uninitialized use. More... | |
| using | branch_iterator = SmallVectorImpl<Branch>::const_iterator |
Public Member Functions | |
| UninitUse (const Expr *User, bool AlwaysUninit) | |
| void | addUninitBranch (Branch B) |
| void | setUninitAfterCall () |
| void | setUninitAfterDecl () |
| void | setConstRefUse () |
| void | setConstPtrUse () |
| const Expr * | getUser () const |
| Get the expression containing the uninitialized use. | |
| bool | isConstRefUse () const |
| bool | isConstPtrUse () const |
| bool | isConstRefOrPtrUse () const |
| Kind | getKind () const |
| Get the kind of uninitialized use. | |
| branch_iterator | branch_begin () const |
| Branches which inevitably result in the variable being used uninitialized. | |
| branch_iterator | branch_end () const |
| bool | branch_empty () const |
A use of a variable, which might be uninitialized.
Definition at line 30 of file UninitializedValues.h.
| using clang::UninitUse::branch_iterator = SmallVectorImpl<Branch>::const_iterator |
Definition at line 108 of file UninitializedValues.h.
The kind of uninitialized use.
Definition at line 81 of file UninitializedValues.h.
Definition at line 61 of file UninitializedValues.h.
|
inline |
Definition at line 64 of file UninitializedValues.h.
|
inline |
Branches which inevitably result in the variable being used uninitialized.
Definition at line 111 of file UninitializedValues.h.
Referenced by DiagUninitUse().
|
inline |
Definition at line 113 of file UninitializedValues.h.
Referenced by getKind().
|
inline |
Definition at line 112 of file UninitializedValues.h.
Referenced by DiagUninitUse().
|
inline |
Get the kind of uninitialized use.
Definition at line 101 of file UninitializedValues.h.
References AfterCall, AfterDecl, Always, branch_empty(), Maybe, and Sometimes.
Referenced by DiagUninitUse().
|
inline |
Get the expression containing the uninitialized use.
Definition at line 74 of file UninitializedValues.h.
Referenced by DiagnoseUninitializedConstPtrUse(), DiagnoseUninitializedConstRefUse(), DiagnoseUninitializedUse(), and DiagUninitUse().
|
inline |
Definition at line 77 of file UninitializedValues.h.
|
inline |
Definition at line 78 of file UninitializedValues.h.
|
inline |
Definition at line 76 of file UninitializedValues.h.
|
inline |
Definition at line 71 of file UninitializedValues.h.
|
inline |
Definition at line 70 of file UninitializedValues.h.
|
inline |
Definition at line 68 of file UninitializedValues.h.
|
inline |
Definition at line 69 of file UninitializedValues.h.