clang API Documentation
#include <Stmt.h>
Public Member Functions | |
IndirectGotoStmt (SourceLocation gotoLoc, SourceLocation starLoc, Expr *target) | |
IndirectGotoStmt (EmptyShell Empty) | |
Build an empty indirect goto statement. | |
void | setGotoLoc (SourceLocation L) |
SourceLocation | getGotoLoc () const |
void | setStarLoc (SourceLocation L) |
SourceLocation | getStarLoc () const |
Expr * | getTarget () |
const Expr * | getTarget () const |
void | setTarget (Expr *E) |
LabelDecl * | getConstantTarget () |
const LabelDecl * | getConstantTarget () const |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static bool | classof (const Stmt *T) |
IndirectGotoStmt - This represents an indirect goto.
clang::IndirectGotoStmt::IndirectGotoStmt | ( | SourceLocation | gotoLoc, |
SourceLocation | starLoc, | ||
Expr * | target | ||
) | [inline] |
clang::IndirectGotoStmt::IndirectGotoStmt | ( | EmptyShell | Empty | ) | [inline, explicit] |
child_range clang::IndirectGotoStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::IndirectGotoStmt::classof | ( | const Stmt * | T | ) | [inline, static] |
Definition at line 1276 of file Stmt.h.
References clang::Stmt::getStmtClass().
getConstantTarget - Returns the fixed target of this indirect goto, if one exists.
Definition at line 998 of file Stmt.cpp.
References getTarget().
Referenced by clang::CodeGen::CodeGenFunction::EmitIndirectGotoStmt(), and getConstantTarget().
const LabelDecl* clang::IndirectGotoStmt::getConstantTarget | ( | ) | const [inline] |
Definition at line 1269 of file Stmt.h.
References getConstantTarget().
SourceLocation clang::IndirectGotoStmt::getGotoLoc | ( | ) | const [inline] |
Definition at line 1258 of file Stmt.h.
Referenced by DiagnoseIndirectJumpStmt().
SourceLocation clang::IndirectGotoStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 1274 of file Stmt.h.
References clang::Stmt::getLocEnd().
SourceLocation clang::IndirectGotoStmt::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::IndirectGotoStmt::getStarLoc | ( | ) | const [inline] |
Expr* clang::IndirectGotoStmt::getTarget | ( | ) | [inline] |
Definition at line 1262 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitIndirectGotoStmt(), and getConstantTarget().
const Expr* clang::IndirectGotoStmt::getTarget | ( | ) | const [inline] |
void clang::IndirectGotoStmt::setGotoLoc | ( | SourceLocation | L | ) | [inline] |
void clang::IndirectGotoStmt::setStarLoc | ( | SourceLocation | L | ) | [inline] |
void clang::IndirectGotoStmt::setTarget | ( | Expr * | E | ) | [inline] |