clang API Documentation
#include <Stmt.h>


Public Member Functions | |
| CaseStmt (Expr *lhs, Expr *rhs, SourceLocation caseLoc, SourceLocation ellipsisLoc, SourceLocation colonLoc) | |
| CaseStmt (EmptyShell Empty) | |
| Build an empty switch case statement. | |
| SourceLocation | getCaseLoc () const |
| void | setCaseLoc (SourceLocation L) |
| SourceLocation | getEllipsisLoc () const |
| void | setEllipsisLoc (SourceLocation L) |
| SourceLocation | getColonLoc () const |
| void | setColonLoc (SourceLocation L) |
| Expr * | getLHS () |
| Expr * | getRHS () |
| Stmt * | getSubStmt () |
| const Expr * | getLHS () const |
| const Expr * | getRHS () const |
| const Stmt * | getSubStmt () const |
| void | setSubStmt (Stmt *S) |
| void | setLHS (Expr *Val) |
| void | setRHS (Expr *Val) |
| SourceRange | getSourceRange () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
| static bool | classof (const CaseStmt *) |
| clang::CaseStmt::CaseStmt | ( | Expr * | lhs, |
| Expr * | rhs, | ||
| SourceLocation | caseLoc, | ||
| SourceLocation | ellipsisLoc, | ||
| SourceLocation | colonLoc | ||
| ) | [inline] |
| clang::CaseStmt::CaseStmt | ( | EmptyShell | Empty | ) | [inline, explicit] |
| child_range clang::CaseStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
| static bool clang::CaseStmt::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::SwitchCase.
Definition at line 717 of file Stmt.h.
References clang::Stmt::getStmtClass().
| static bool clang::CaseStmt::classof | ( | const CaseStmt * | ) | [inline, static] |
| SourceLocation clang::CaseStmt::getCaseLoc | ( | ) | const [inline] |
| SourceLocation clang::CaseStmt::getColonLoc | ( | ) | const [inline] |
| SourceLocation clang::CaseStmt::getEllipsisLoc | ( | ) | const [inline] |
| Expr* clang::CaseStmt::getLHS | ( | ) | [inline] |
Definition at line 692 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::CodeCompleteCase(), clang::CodeGen::CodeGenFunction::EmitCaseStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmtRange(), FindCaseStatementsForValue(), GenerateMinimalPathDiagnostic(), and clang::ento::SubEngine::processSwitch().
| Expr* clang::CaseStmt::getRHS | ( | ) | [inline] |
Definition at line 693 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmtRange(), FindCaseStatementsForValue(), and clang::ento::SubEngine::processSwitch().
| SourceRange clang::CaseStmt::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 709 of file Stmt.h.
References clang::Stmt::getLocEnd(), and getSubStmt().
| Stmt* clang::CaseStmt::getSubStmt | ( | ) | [inline] |
Reimplemented from clang::SwitchCase.
Definition at line 694 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCaseStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmtRange(), and getSourceRange().
| const Stmt* clang::CaseStmt::getSubStmt | ( | ) | const [inline] |
Reimplemented from clang::SwitchCase.
| void clang::CaseStmt::setCaseLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::CaseStmt::setColonLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::CaseStmt::setEllipsisLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::CaseStmt::setLHS | ( | Expr * | Val | ) | [inline] |
Definition at line 705 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt().
| void clang::CaseStmt::setRHS | ( | Expr * | Val | ) | [inline] |
Definition at line 706 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt().
| void clang::CaseStmt::setSubStmt | ( | Stmt * | S | ) | [inline] |
Definition at line 704 of file Stmt.h.
References S.
Referenced by clang::Sema::ActOnCaseStmtBody().