clang API Documentation
#include <Stmt.h>


Public Member Functions | |
| DefaultStmt (SourceLocation DL, SourceLocation CL, Stmt *substmt) | |
| DefaultStmt (EmptyShell) | |
| Build an empty default statement. | |
| Stmt * | getSubStmt () |
| const Stmt * | getSubStmt () 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 *) |
| clang::DefaultStmt::DefaultStmt | ( | SourceLocation | DL, |
| SourceLocation | CL, | ||
| Stmt * | substmt | ||
| ) | [inline] |
| clang::DefaultStmt::DefaultStmt | ( | EmptyShell | ) | [inline, explicit] |
| child_range clang::DefaultStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| 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] |
| SourceLocation clang::DefaultStmt::getColonLoc | ( | ) | const [inline] |
| 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.
| void clang::DefaultStmt::setColonLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::DefaultStmt::setDefaultLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::DefaultStmt::setSubStmt | ( | Stmt * | S | ) | [inline] |