clang API Documentation
#include <Stmt.h>


Public Member Functions | |
| LabelStmt (SourceLocation IL, LabelDecl *D, Stmt *substmt) | |
| LabelStmt (EmptyShell Empty) | |
| SourceLocation | getIdentLoc () const |
| LabelDecl * | getDecl () const |
| void | setDecl (LabelDecl *D) |
| const char * | getName () const |
| Stmt * | getSubStmt () |
| const Stmt * | getSubStmt () 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) |
LabelStmt - Represents a label, which has a substatement. For example: foo: return;
| clang::LabelStmt::LabelStmt | ( | SourceLocation | IL, |
| LabelDecl * | D, | ||
| Stmt * | substmt | ||
| ) | [inline] |
| clang::LabelStmt::LabelStmt | ( | EmptyShell | Empty | ) | [inline, explicit] |
| child_range clang::LabelStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| 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().
| SourceLocation clang::LabelStmt::getIdentLoc | ( | ) | const [inline] |
Definition at line 798 of file Stmt.h.
Referenced by DiagnoseIndirectJumpStmt().
| SourceLocation clang::LabelStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 808 of file Stmt.h.
References clang::Stmt::getLocEnd().
| SourceLocation clang::LabelStmt::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
| const char * LabelStmt::getName | ( | ) | const |
Definition at line 301 of file Stmt.cpp.
References getDecl(), clang::NamedDecl::getIdentifier(), and clang::IdentifierInfo::getNameStart().
Referenced by print_block().
| Stmt* clang::LabelStmt::getSubStmt | ( | ) | [inline] |
Definition at line 802 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitLabelStmt().
| const Stmt* clang::LabelStmt::getSubStmt | ( | ) | const [inline] |
| void clang::LabelStmt::setDecl | ( | LabelDecl * | D | ) | [inline] |
| void clang::LabelStmt::setIdentLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::LabelStmt::setSubStmt | ( | Stmt * | SS | ) | [inline] |
Definition at line 805 of file Stmt.h.
Referenced by clang::Sema::ActOnStmtExpr().