clang  3.9.0
Public Member Functions | Static Public Member Functions | List of all members
clang::CodeGen::CodeGenFunction::OpaqueValueMapping Class Reference

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)
 Build the opaque value mapping for the given conditional operator if it's the GNU ?: extension. More...
 
 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)
 

Detailed Description

An RAII object to set (and then clear) a mapping for an OpaqueValueExpr.

Definition at line 879 of file CodeGenFunction.h.

Constructor & Destructor Documentation

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 893 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 904 of file CodeGenFunction.h.

clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping ( CodeGenFunction CGF,
const OpaqueValueExpr opaqueValue,
RValue  rvalue 
)
inline

Definition at line 910 of file CodeGenFunction.h.

clang::CodeGen::CodeGenFunction::OpaqueValueMapping::~OpaqueValueMapping ( )
inline

Member Function Documentation

void clang::CodeGen::CodeGenFunction::OpaqueValueMapping::pop ( )
inline
static bool clang::CodeGen::CodeGenFunction::OpaqueValueMapping::shouldBindAsLValue ( const Expr expr)
inlinestatic

The documentation for this class was generated from the following file: