clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::BinaryConditionalOperator Class Reference

#include <Expr.h>

Inheritance diagram for clang::BinaryConditionalOperator:
Inheritance graph
[legend]
Collaboration diagram for clang::BinaryConditionalOperator:
Collaboration graph
[legend]

List of all members.

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.
ExprgetCommon () 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.
OpaqueValueExprgetOpaqueValue () const
 getOpaqueValue - Return the opaque value placeholder.
ExprgetCond () const
 getCond - Return the condition expression; this is defined in terms of the opaque value.
ExprgetTrueExpr () const
 getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; this is defined in terms of the opaque value.
ExprgetFalseExpr () 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

Detailed Description

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.

Definition at line 3257 of file Expr.h.


Constructor & Destructor Documentation

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().

Build an empty conditional operator.

Definition at line 3291 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 3332 of file Expr.h.

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().

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().

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().

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().

Reimplemented from clang::Stmt.

Definition at line 3323 of file Expr.h.

References getFalseExpr(), and clang::Stmt::getLocEnd().

Reimplemented from clang::Stmt.

Definition at line 3320 of file Expr.h.

References getCommon(), and clang::Stmt::getLocStart().

getOpaqueValue - Return the opaque value placeholder.

Definition at line 3300 of file Expr.h.

Referenced by clang::CodeGen::CodeGenFunction::OpaqueValueMapping::OpaqueValueMapping().

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().


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::AbstractConditionalOperator.

Definition at line 3268 of file Expr.h.


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