clang API Documentation
An RAII object to set (and then clear) a mapping for an OpaqueValueExpr. More...
#include <CodeGenFunction.h>
Public Member Functions | |
OpaqueValueMapping (CodeGenFunction &CGF, const AbstractConditionalOperator *op) | |
OpaqueValueMapping (CodeGenFunction &CGF, const OpaqueValueExpr *opaqueValue, LValue lvalue) | |
OpaqueValueMapping (CodeGenFunction &CGF, const OpaqueValueExpr *opaqueValue, RValue rvalue) | |
void | pop () |
~OpaqueValueMapping () | |
Static Public Member Functions | |
static bool | shouldBindAsLValue (const Expr *expr) |
An RAII object to set (and then clear) a mapping for an OpaqueValueExpr.
Definition at line 847 of file CodeGenFunction.h.
clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping | ( | CodeGenFunction & | CGF, |
const AbstractConditionalOperator * | op | ||
) | [inline] |
Build the opaque value mapping for the given conditional operator if it's the GNU ?: extension. This is a common enough pattern that the convenience operator is really helpful.
Definition at line 861 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind(), clang::BinaryConditionalOperator::getCommon(), and clang::BinaryConditionalOperator::getOpaqueValue().
clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping | ( | CodeGenFunction & | CGF, |
const OpaqueValueExpr * | opaqueValue, | ||
LValue | lvalue | ||
) | [inline] |
Definition at line 872 of file CodeGenFunction.h.
clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping | ( | CodeGenFunction & | CGF, |
const OpaqueValueExpr * | opaqueValue, | ||
RValue | rvalue | ||
) | [inline] |
Definition at line 878 of file CodeGenFunction.h.
Definition at line 889 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::isValid(), and clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::unbind().
void clang::CodeGen::CodeGenFunction::OpaqueValueMapping::pop | ( | ) | [inline] |
Definition at line 884 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::clear(), and clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::unbind().
Referenced by InitCatchParam().
static bool clang::CodeGen::CodeGenFunction::OpaqueValueMapping::shouldBindAsLValue | ( | const Expr * | expr | ) | [inline, static] |
Definition at line 852 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::getOpaqueLValueMapping(), and clang::CodeGen::CodeGenFunction::getOpaqueRValueMapping().