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

Methods

ActionResult<PtrTy, CompressInvalid>(
    bool Invalid = false)

Declared at: clang/include/clang/Sema/Ownership.h:157

Parameters

bool Invalid = false

ActionResult<PtrTy, CompressInvalid>(PtrTy val)

Declared at: clang/include/clang/Sema/Ownership.h:158

Parameters

PtrTy val

ActionResult<PtrTy, CompressInvalid>(
    const clang::DiagnosticBuilder&)

Declared at: clang/include/clang/Sema/Ownership.h:159

Parameters

const clang::DiagnosticBuilder&

ActionResult<PtrTy, CompressInvalid>(const void*)

Declared at: clang/include/clang/Sema/Ownership.h:162

Parameters

const void*

ActionResult<PtrTy, CompressInvalid>(
    volatile void*)

Declared at: clang/include/clang/Sema/Ownership.h:163

Parameters

volatile void*

PtrTy get() const

Declared at: clang/include/clang/Sema/Ownership.h:169

template <typename T>
T* getAs()

Declared at: clang/include/clang/Sema/Ownership.h:170

Templates

T

bool isInvalid() const

Declared at: clang/include/clang/Sema/Ownership.h:165

bool isUnset() const

Declared at: clang/include/clang/Sema/Ownership.h:167

bool isUsable() const

Declared at: clang/include/clang/Sema/Ownership.h:166

void set(PtrTy V)

Declared at: clang/include/clang/Sema/Ownership.h:172

Parameters

PtrTy V