clang API Documentation

Public Member Functions | Static Public Member Functions
clang::CaseStmt Class Reference

#include <Stmt.h>

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

List of all members.

Public Member Functions

 CaseStmt (Expr *lhs, Expr *rhs, SourceLocation caseLoc, SourceLocation ellipsisLoc, SourceLocation colonLoc)
 CaseStmt (EmptyShell Empty)
 Build an empty switch case statement.
SourceLocation getCaseLoc () const
void setCaseLoc (SourceLocation L)
SourceLocation getEllipsisLoc () const
void setEllipsisLoc (SourceLocation L)
SourceLocation getColonLoc () const
void setColonLoc (SourceLocation L)
ExprgetLHS ()
ExprgetRHS ()
StmtgetSubStmt ()
const ExprgetLHS () const
const ExprgetRHS () const
const StmtgetSubStmt () const
void setSubStmt (Stmt *S)
void setLHS (Expr *Val)
void setRHS (Expr *Val)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)

Detailed Description

Definition at line 686 of file Stmt.h.


Constructor & Destructor Documentation

clang::CaseStmt::CaseStmt ( Expr lhs,
Expr rhs,
SourceLocation  caseLoc,
SourceLocation  ellipsisLoc,
SourceLocation  colonLoc 
) [inline]

Definition at line 692 of file Stmt.h.

clang::CaseStmt::CaseStmt ( EmptyShell  Empty) [inline, explicit]

Build an empty switch case statement.

Definition at line 702 of file Stmt.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 742 of file Stmt.h.

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

Reimplemented from clang::SwitchCase.

Definition at line 737 of file Stmt.h.

References clang::Stmt::getStmtClass().

Definition at line 704 of file Stmt.h.

References clang::SwitchCase::KeywordLoc.

Reimplemented from clang::SwitchCase.

Definition at line 708 of file Stmt.h.

References clang::SwitchCase::ColonLoc.

Definition at line 706 of file Stmt.h.

const Expr* clang::CaseStmt::getLHS ( ) const [inline]

Definition at line 715 of file Stmt.h.

Reimplemented from clang::SwitchCase.

Definition at line 728 of file Stmt.h.

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

Reimplemented from clang::SwitchCase.

Definition at line 727 of file Stmt.h.

References clang::SwitchCase::KeywordLoc.

const Expr* clang::CaseStmt::getRHS ( ) const [inline]

Definition at line 718 of file Stmt.h.

const Stmt* clang::CaseStmt::getSubStmt ( ) const [inline]

Reimplemented from clang::SwitchCase.

Definition at line 721 of file Stmt.h.

Definition at line 705 of file Stmt.h.

References clang::SwitchCase::KeywordLoc.

Reimplemented from clang::SwitchCase.

Definition at line 709 of file Stmt.h.

References clang::SwitchCase::ColonLoc.

Definition at line 707 of file Stmt.h.

void clang::CaseStmt::setLHS ( Expr Val) [inline]

Definition at line 724 of file Stmt.h.

Referenced by clang::Sema::ActOnFinishSwitchStmt().

void clang::CaseStmt::setRHS ( Expr Val) [inline]

Definition at line 725 of file Stmt.h.

Referenced by clang::Sema::ActOnFinishSwitchStmt().

void clang::CaseStmt::setSubStmt ( Stmt S) [inline]

Definition at line 723 of file Stmt.h.

References S.

Referenced by clang::Sema::ActOnCaseStmtBody().


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