clang API Documentation
#include <Expr.h>
Public Member Functions | |
BinaryConditionalOperator (Expr *common, OpaqueValueExpr *opaqueValue, Expr *cond, Expr *lhs, Expr *rhs, SourceLocation qloc, SourceLocation cloc, QualType t, ExprValueKind VK, ExprObjectKind OK) | |
BinaryConditionalOperator (EmptyShell Empty) | |
Build an empty conditional operator. | |
Expr * | getCommon () const |
getCommon - Return the common expression, written to the left of the condition. The opaque value will be bound to the result of this expression. | |
OpaqueValueExpr * | getOpaqueValue () const |
getOpaqueValue - Return the opaque value placeholder. | |
Expr * | getCond () const |
getCond - Return the condition expression; this is defined in terms of the opaque value. | |
Expr * | getTrueExpr () const |
getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; this is defined in terms of the opaque value. | |
Expr * | getFalseExpr () const |
getFalseExpr - Return the subexpression which will be evaluated if the condnition evaluates to false; this is defined in terms of the opaque value. | |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle operand to be omitted.
This is a different expression kind on the assumption that almost every client ends up needing to know that these are different.
clang::BinaryConditionalOperator::BinaryConditionalOperator | ( | Expr * | common, |
OpaqueValueExpr * | opaqueValue, | ||
Expr * | cond, | ||
Expr * | lhs, | ||
Expr * | rhs, | ||
SourceLocation | qloc, | ||
SourceLocation | cloc, | ||
QualType | t, | ||
ExprValueKind | VK, | ||
ExprObjectKind | OK | ||
) | [inline] |
Definition at line 3270 of file Expr.h.
References clang::OpaqueValueExpr::getSourceExpr().
clang::BinaryConditionalOperator::BinaryConditionalOperator | ( | EmptyShell | Empty | ) | [inline, explicit] |
child_range clang::BinaryConditionalOperator::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::BinaryConditionalOperator::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3327 of file Expr.h.
References clang::Stmt::getStmtClass().
Expr* clang::BinaryConditionalOperator::getCommon | ( | ) | const [inline] |
getCommon - Return the common expression, written to the left of the condition. The opaque value will be bound to the result of this expression.
Definition at line 3297 of file Expr.h.
Referenced by BuildParentMap(), CheckICE(), getLocStart(), and clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping().
Expr* clang::BinaryConditionalOperator::getCond | ( | ) | const [inline] |
getCond - Return the condition expression; this is defined in terms of the opaque value.
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3304 of file Expr.h.
Referenced by BuildParentMap().
Expr* clang::BinaryConditionalOperator::getFalseExpr | ( | ) | const [inline] |
getFalseExpr - Return the subexpression which will be evaluated if the condnition evaluates to false; this is defined in terms of the opaque value.
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3316 of file Expr.h.
Referenced by BuildParentMap(), CheckICE(), ClassifyInternal(), and getLocEnd().
SourceLocation clang::BinaryConditionalOperator::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 3323 of file Expr.h.
References getFalseExpr(), and clang::Stmt::getLocEnd().
SourceLocation clang::BinaryConditionalOperator::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 3320 of file Expr.h.
References getCommon(), and clang::Stmt::getLocStart().
OpaqueValueExpr* clang::BinaryConditionalOperator::getOpaqueValue | ( | ) | const [inline] |
getOpaqueValue - Return the opaque value placeholder.
Definition at line 3300 of file Expr.h.
Referenced by clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping().
Expr* clang::BinaryConditionalOperator::getTrueExpr | ( | ) | const [inline] |
getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; this is defined in terms of the opaque value.
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3309 of file Expr.h.
Referenced by BuildParentMap(), and ClassifyInternal().
friend class ASTStmtReader [friend] |
Reimplemented from clang::AbstractConditionalOperator.