clang  3.7.0
Public Member Functions | Static Public Member Functions | List of all members
clang::LabelStmt Class Reference

#include <Stmt.h>

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

Public Member Functions

 LabelStmt (SourceLocation IL, LabelDecl *D, Stmt *substmt)
 
 LabelStmt (EmptyShell Empty)
 
SourceLocation getIdentLoc () const
 
LabelDeclgetDecl () const
 
void setDecl (LabelDecl *D)
 
const char * getName () const
 
StmtgetSubStmt ()
 
const StmtgetSubStmt () const
 
void setIdentLoc (SourceLocation L)
 
void setSubStmt (Stmt *SS)
 
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

LabelStmt - Represents a label, which has a substatement. For example: foo: return;

Definition at line 792 of file Stmt.h.

Constructor & Destructor Documentation

clang::LabelStmt::LabelStmt ( SourceLocation  IL,
LabelDecl D,
Stmt substmt 
)
inline

Definition at line 798 of file Stmt.h.

clang::LabelStmt::LabelStmt ( EmptyShell  Empty)
inlineexplicit

Definition at line 806 of file Stmt.h.

Member Function Documentation

child_range clang::LabelStmt::children ( )
inline

Definition at line 820 of file Stmt.h.

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

Definition at line 822 of file Stmt.h.

LabelDecl* clang::LabelStmt::getDecl ( ) const
inline
SourceLocation clang::LabelStmt::getIdentLoc ( ) const
inline

Definition at line 808 of file Stmt.h.

Referenced by DiagnoseIndirectJumpStmt(), and clang::ASTNodeImporter::VisitLabelStmt().

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

Definition at line 818 of file Stmt.h.

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

Definition at line 817 of file Stmt.h.

const char * LabelStmt::getName ( ) const
Stmt* clang::LabelStmt::getSubStmt ( )
inline
const Stmt* clang::LabelStmt::getSubStmt ( ) const
inline

Definition at line 813 of file Stmt.h.

void clang::LabelStmt::setDecl ( LabelDecl D)
inline

Definition at line 810 of file Stmt.h.

void clang::LabelStmt::setIdentLoc ( SourceLocation  L)
inline

Definition at line 814 of file Stmt.h.

void clang::LabelStmt::setSubStmt ( Stmt SS)
inline

Definition at line 815 of file Stmt.h.

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


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