clang API Documentation

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

#include <Stmt.h>

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

List of all members.

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 786 of file Stmt.h.


Constructor & Destructor Documentation

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

Definition at line 791 of file Stmt.h.

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

Definition at line 796 of file Stmt.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 810 of file Stmt.h.

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

Definition at line 812 of file Stmt.h.

References clang::Stmt::getStmtClass().

LabelDecl* clang::LabelStmt::getDecl ( ) const [inline]

Definition at line 799 of file Stmt.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitLabelStmt(), and getName().

Definition at line 798 of file Stmt.h.

Referenced by DiagnoseIndirectJumpStmt().

Reimplemented from clang::Stmt.

Definition at line 808 of file Stmt.h.

References clang::Stmt::getLocEnd().

Reimplemented from clang::Stmt.

Definition at line 807 of file Stmt.h.

const char * LabelStmt::getName ( ) const

Definition at line 802 of file Stmt.h.

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

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

Definition at line 803 of file Stmt.h.

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

Definition at line 800 of file Stmt.h.

Definition at line 804 of file Stmt.h.

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

Definition at line 805 of file Stmt.h.

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


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