class ActionResult
Declaration
template <class PtrTy,
bool CompressInvalid =
IsResultPtrLowBitFree<type - parameter - 0 - 0>::value>
class ActionResult { /* full declaration omitted */ };
Description
ActionResult - This structure is used while parsing/acting on expressions, stmts, etc. It encapsulates both the object returned by the action, plus a sense of whether or not it is valid. When CompressInvalid is true, the "invalid" flag will be stored in the low bit of the Val pointer.
Declared at: clang/include/clang/Sema/Ownership.h:152
Templates
- PtrTy
- bool CompressInvalid = IsResultPtrLowBitFree<type-parameter-0-0>::value
Member Variables
- private PtrTy Val
- private bool Invalid
Method Overview
- public ActionResult<PtrTy, CompressInvalid>(bool Invalid = false)
- public ActionResult<PtrTy, CompressInvalid>(PtrTy val)
- public ActionResult<PtrTy, CompressInvalid>(const clang::DiagnosticBuilder &)
- public ActionResult<PtrTy, CompressInvalid>(const void *)
- public ActionResult<PtrTy, CompressInvalid>(volatile void *)
- public PtrTy get() const
- public template <typename T>T * getAs()
- public bool isInvalid() const
- public bool isUnset() const
- public bool isUsable() const
- public void set(PtrTy V)
Methods
¶ActionResult<PtrTy, CompressInvalid>(
bool Invalid = false)
ActionResult<PtrTy, CompressInvalid>(
bool Invalid = false)
Declared at: clang/include/clang/Sema/Ownership.h:157
Parameters
- bool Invalid = false
¶ActionResult<PtrTy, CompressInvalid>(PtrTy val)
ActionResult<PtrTy, CompressInvalid>(PtrTy val)
Declared at: clang/include/clang/Sema/Ownership.h:158
Parameters
- PtrTy val
¶ActionResult<PtrTy, CompressInvalid>(
const clang::DiagnosticBuilder&)
ActionResult<PtrTy, CompressInvalid>(
const clang::DiagnosticBuilder&)
Declared at: clang/include/clang/Sema/Ownership.h:159
Parameters
- const clang::DiagnosticBuilder&
¶ActionResult<PtrTy, CompressInvalid>(const void*)
ActionResult<PtrTy, CompressInvalid>(const void*)
Declared at: clang/include/clang/Sema/Ownership.h:162
Parameters
- const void*
¶ActionResult<PtrTy, CompressInvalid>(
volatile void*)
ActionResult<PtrTy, CompressInvalid>(
volatile void*)
Declared at: clang/include/clang/Sema/Ownership.h:163
Parameters
- volatile void*
¶PtrTy get() const
PtrTy get() const
Declared at: clang/include/clang/Sema/Ownership.h:169
¶template <typename T>
T* getAs()
template <typename T>
T* getAs()
Declared at: clang/include/clang/Sema/Ownership.h:170
Templates
- T
¶bool isInvalid() const
bool isInvalid() const
Declared at: clang/include/clang/Sema/Ownership.h:165
¶bool isUnset() const
bool isUnset() const
Declared at: clang/include/clang/Sema/Ownership.h:167
¶bool isUsable() const
bool isUsable() const
Declared at: clang/include/clang/Sema/Ownership.h:166
¶void set(PtrTy V)
void set(PtrTy V)
Declared at: clang/include/clang/Sema/Ownership.h:172
Parameters
- PtrTy V