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)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)
static bool classof (const CaseStmt *)

Detailed Description

Definition at line 663 of file Stmt.h.


Constructor & Destructor Documentation

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

Definition at line 671 of file Stmt.h.

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

Build an empty switch case statement.

Definition at line 683 of file Stmt.h.


Member Function Documentation

child_range clang::CaseStmt::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 723 of file Stmt.h.

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

Reimplemented from clang::SwitchCase.

Definition at line 717 of file Stmt.h.

References clang::Stmt::getStmtClass().

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

Definition at line 720 of file Stmt.h.

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

Definition at line 685 of file Stmt.h.

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

Definition at line 689 of file Stmt.h.

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

Definition at line 687 of file Stmt.h.

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

Definition at line 696 of file Stmt.h.

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

Definition at line 699 of file Stmt.h.

SourceRange clang::CaseStmt::getSourceRange ( ) const [inline]

SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.

Reimplemented from clang::SwitchCase.

Definition at line 709 of file Stmt.h.

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

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

Reimplemented from clang::SwitchCase.

Definition at line 702 of file Stmt.h.

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

Definition at line 686 of file Stmt.h.

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

Definition at line 690 of file Stmt.h.

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

Definition at line 688 of file Stmt.h.

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

Definition at line 705 of file Stmt.h.

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

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

Definition at line 706 of file Stmt.h.

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

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

Definition at line 704 of file Stmt.h.

References S.

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


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