clang API Documentation

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

#include <Expr.h>

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

List of all members.

Public Member Functions

 ConditionalOperator (Expr *cond, SourceLocation QLoc, Expr *lhs, SourceLocation CLoc, Expr *rhs, QualType t, ExprValueKind VK, ExprObjectKind OK)
 ConditionalOperator (EmptyShell Empty)
 Build an empty conditional operator.
Expr * getCond () const
Expr * getTrueExpr () const
Expr * getFalseExpr () const
Expr * getLHS () const
Expr * getRHS () const
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

ConditionalOperator - The ?: ternary operator. The GNU "missing middle" extension is a BinaryConditionalOperator.

Definition at line 3187 of file Expr.h.


Constructor & Destructor Documentation

clang::ConditionalOperator::ConditionalOperator ( Expr *  cond,
SourceLocation  QLoc,
Expr *  lhs,
SourceLocation  CLoc,
Expr *  rhs,
QualType  t,
ExprValueKind  VK,
ExprObjectKind  OK 
) [inline]

Definition at line 3193 of file Expr.h.

Build an empty conditional operator.

Definition at line 3216 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 3247 of file Expr.h.

static bool clang::ConditionalOperator::classof ( const Stmt *  T) [inline, static]

Reimplemented from clang::AbstractConditionalOperator.

Definition at line 3242 of file Expr.h.

References clang::Stmt::getStmtClass().

Reimplemented from clang::AbstractConditionalOperator.

Definition at line 3221 of file Expr.h.

Referenced by CheckICE(), DiagUninitUse(), getLocStart(), and isConditionForTerminator().

Reimplemented from clang::AbstractConditionalOperator.

Definition at line 3230 of file Expr.h.

Referenced by CheckICE(), ClassifyInternal(), and DiagUninitUse().

Reimplemented from clang::Stmt.

Definition at line 3238 of file Expr.h.

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

Reimplemented from clang::Stmt.

Definition at line 3235 of file Expr.h.

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

Reimplemented from clang::AbstractConditionalOperator.

Definition at line 3225 of file Expr.h.

Referenced by CheckICE(), ClassifyInternal(), and DiagUninitUse().


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::AbstractConditionalOperator.

Definition at line 3191 of file Expr.h.


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