clang API Documentation

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

#include <Stmt.h>

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

List of all members.

Public Member Functions

 DefaultStmt (SourceLocation DL, SourceLocation CL, Stmt *substmt)
 DefaultStmt (EmptyShell)
 Build an empty default statement.
StmtgetSubStmt ()
const StmtgetSubStmt () const
void setSubStmt (Stmt *S)
SourceLocation getDefaultLoc () const
void setDefaultLoc (SourceLocation L)
SourceLocation getColonLoc () const
void setColonLoc (SourceLocation L)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

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

Detailed Description

Definition at line 728 of file Stmt.h.


Constructor & Destructor Documentation

clang::DefaultStmt::DefaultStmt ( SourceLocation  DL,
SourceLocation  CL,
Stmt substmt 
) [inline]

Definition at line 733 of file Stmt.h.

clang::DefaultStmt::DefaultStmt ( EmptyShell  ) [inline, explicit]

Build an empty default statement.

Definition at line 738 of file Stmt.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 758 of file Stmt.h.

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

Reimplemented from clang::SwitchCase.

Definition at line 752 of file Stmt.h.

References clang::Stmt::getStmtClass().

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

Definition at line 755 of file Stmt.h.

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

Definition at line 746 of file Stmt.h.

SourceLocation clang::DefaultStmt::getDefaultLoc ( ) const [inline]

Definition at line 744 of file Stmt.h.

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

SourceRange clang::DefaultStmt::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 749 of file Stmt.h.

References clang::Stmt::getLocEnd().

Stmt* clang::DefaultStmt::getSubStmt ( ) [inline]

Reimplemented from clang::SwitchCase.

Definition at line 740 of file Stmt.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitDefaultStmt().

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

Reimplemented from clang::SwitchCase.

Definition at line 741 of file Stmt.h.

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

Definition at line 747 of file Stmt.h.

void clang::DefaultStmt::setDefaultLoc ( SourceLocation  L) [inline]

Definition at line 745 of file Stmt.h.

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

Definition at line 742 of file Stmt.h.

References S.


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