clang  3.9.0
Public Member Functions | Static Public Member Functions | List of all members
clang::CaseStmt Class Reference

#include <Stmt.h>

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

Public Member Functions

 CaseStmt (Expr *lhs, Expr *rhs, SourceLocation caseLoc, SourceLocation ellipsisLoc, SourceLocation colonLoc)
 
 CaseStmt (EmptyShell Empty)
 Build an empty switch case statement. More...
 
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 ()
 
- Public Member Functions inherited from clang::SwitchCase
const SwitchCasegetNextSwitchCase () const
 
SwitchCasegetNextSwitchCase ()
 
void setNextSwitchCase (SwitchCase *SC)
 
SourceLocation getKeywordLoc () const
 
void setKeywordLoc (SourceLocation L)
 
SourceLocation getColonLoc () const
 
void setColonLoc (SourceLocation L)
 
StmtgetSubStmt ()
 
const StmtgetSubStmt () const
 
SourceLocation getLocStart () const LLVM_READONLY
 
SourceLocation getLocEnd () const LLVM_READONLY
 

Static Public Member Functions

static bool classof (const Stmt *T)
 
- Static Public Member Functions inherited from clang::SwitchCase
static bool classof (const Stmt *T)
 

Additional Inherited Members

- Protected Member Functions inherited from clang::SwitchCase
 SwitchCase (StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
 
 SwitchCase (StmtClass SC, EmptyShell)
 
- Protected Attributes inherited from clang::SwitchCase
SwitchCaseNextSwitchCase
 
SourceLocation KeywordLoc
 
SourceLocation ColonLoc
 

Detailed Description

Definition at line 689 of file Stmt.h.

Constructor & Destructor Documentation

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

Definition at line 695 of file Stmt.h.

clang::CaseStmt::CaseStmt ( EmptyShell  Empty)
inlineexplicit

Build an empty switch case statement.

Definition at line 705 of file Stmt.h.

Member Function Documentation

child_range clang::CaseStmt::children ( )
inline

Definition at line 745 of file Stmt.h.

static bool clang::CaseStmt::classof ( const Stmt T)
inlinestatic

Definition at line 740 of file Stmt.h.

SourceLocation clang::CaseStmt::getCaseLoc ( ) const
inline

Definition at line 707 of file Stmt.h.

Referenced by clang::ASTNodeImporter::VisitCaseStmt().

SourceLocation clang::CaseStmt::getColonLoc ( ) const
inline

Definition at line 711 of file Stmt.h.

References ColonLoc.

Referenced by clang::ASTNodeImporter::VisitCaseStmt().

SourceLocation clang::CaseStmt::getEllipsisLoc ( ) const
inline

Definition at line 709 of file Stmt.h.

Referenced by clang::ASTNodeImporter::VisitCaseStmt().

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

Definition at line 718 of file Stmt.h.

SourceLocation clang::CaseStmt::getLocEnd ( ) const
inline

Definition at line 731 of file Stmt.h.

References getSubStmt().

SourceLocation clang::CaseStmt::getLocStart ( ) const
inline

Definition at line 730 of file Stmt.h.

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

Definition at line 721 of file Stmt.h.

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

Definition at line 724 of file Stmt.h.

void clang::CaseStmt::setCaseLoc ( SourceLocation  L)
inline

Definition at line 708 of file Stmt.h.

void clang::CaseStmt::setColonLoc ( SourceLocation  L)
inline

Definition at line 712 of file Stmt.h.

References ColonLoc.

void clang::CaseStmt::setEllipsisLoc ( SourceLocation  L)
inline

Definition at line 710 of file Stmt.h.

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

Definition at line 727 of file Stmt.h.

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

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

Definition at line 728 of file Stmt.h.

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

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

Definition at line 726 of file Stmt.h.

References S.

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


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