clang API Documentation
#include <Expr.h>


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 |
ConditionalOperator - The ?: ternary operator. The GNU "missing middle" extension is a BinaryConditionalOperator.
| clang::ConditionalOperator::ConditionalOperator | ( | Expr * | cond, |
| SourceLocation | QLoc, | ||
| Expr * | lhs, | ||
| SourceLocation | CLoc, | ||
| Expr * | rhs, | ||
| QualType | t, | ||
| ExprValueKind | VK, | ||
| ExprObjectKind | OK | ||
| ) | [inline] |
| clang::ConditionalOperator::ConditionalOperator | ( | EmptyShell | Empty | ) | [inline, explicit] |
| child_range clang::ConditionalOperator::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| 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().
| Expr* clang::ConditionalOperator::getCond | ( | ) | const [inline] |
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3221 of file Expr.h.
Referenced by CheckICE(), DiagUninitUse(), getLocStart(), and isConditionForTerminator().
| Expr* clang::ConditionalOperator::getFalseExpr | ( | ) | const [inline] |
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3230 of file Expr.h.
Referenced by CheckICE(), ClassifyInternal(), and DiagUninitUse().
| Expr* clang::ConditionalOperator::getLHS | ( | ) | const [inline] |
Definition at line 3232 of file Expr.h.
Referenced by EvalAddr(), EvalVal(), isConditionForTerminator(), and clang::Expr::isUnusedResultAWarning().
| SourceLocation clang::ConditionalOperator::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 3238 of file Expr.h.
References clang::Stmt::getLocEnd(), and getRHS().
| SourceLocation clang::ConditionalOperator::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 3235 of file Expr.h.
References getCond(), and clang::Stmt::getLocStart().
| Expr* clang::ConditionalOperator::getRHS | ( | ) | const [inline] |
Definition at line 3233 of file Expr.h.
Referenced by EvalAddr(), EvalVal(), getLocEnd(), isConditionForTerminator(), and clang::Expr::isUnusedResultAWarning().
| Expr* clang::ConditionalOperator::getTrueExpr | ( | ) | const [inline] |
Reimplemented from clang::AbstractConditionalOperator.
Definition at line 3225 of file Expr.h.
Referenced by CheckICE(), ClassifyInternal(), and DiagUninitUse().
friend class ASTStmtReader [friend] |
Reimplemented from clang::AbstractConditionalOperator.