class ConditionalOperator

Declaration

class ConditionalOperator : public AbstractConditionalOperator { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/AST/Expr.h:4145

Inherits from: AbstractConditionalOperator

Member Variables

private clang::Stmt* [3] SubExprs

Inherited from Stmt:

protected

Method Overview

  • public ConditionalOperator(clang::Expr * cond, clang::SourceLocation QLoc, clang::Expr * lhs, clang::SourceLocation CLoc, clang::Expr * rhs, clang::QualType t, clang::ExprValueKind VK, clang::ExprObjectKind OK)
  • public ConditionalOperator(clang::Stmt::EmptyShell Empty)
  • public clang::Stmt::child_range children()
  • public clang::Stmt::const_child_range children() const
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getBeginLoc() const
  • public clang::Expr * getCond() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::Expr * getFalseExpr() const
  • public clang::Expr * getLHS() const
  • public clang::Expr * getRHS() const
  • public clang::Expr * getTrueExpr() const

Inherited from AbstractConditionalOperator:

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

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

Declared at: clang/include/clang/AST/Expr.h:4151

Parameters

clang::Expr* cond
clang::SourceLocation QLoc
clang::Expr* lhs
clang::SourceLocation CLoc
clang::Expr* rhs
clang::QualType t
clang::ExprValueKind VK
clang::ExprObjectKind OK

ConditionalOperator(clang::Stmt::EmptyShell Empty)

Description

Build an empty conditional operator.

Declared at: clang/include/clang/AST/Expr.h:4163

Parameters

clang::Stmt::EmptyShell Empty

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/Expr.h:4194

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/Expr.h:4197

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/Expr.h:4189

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Expr.h:4182

clang::Expr* getCond() const

Declared at: clang/include/clang/AST/Expr.h:4168

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Expr.h:4185

clang::Expr* getFalseExpr() const

Declared at: clang/include/clang/AST/Expr.h:4177

clang::Expr* getLHS() const

Declared at: clang/include/clang/AST/Expr.h:4179

clang::Expr* getRHS() const

Declared at: clang/include/clang/AST/Expr.h:4180

clang::Expr* getTrueExpr() const

Declared at: clang/include/clang/AST/Expr.h:4172