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) |
| SourceLocation | getLocStart () const LLVM_READONLY |
| SourceLocation | getLocEnd () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static bool | classof (const Stmt *T) |
| 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 737 of file Stmt.h.
References clang::Stmt::getStmtClass().
| SourceLocation clang::CaseStmt::getCaseLoc | ( | ) | const [inline] |
Definition at line 704 of file Stmt.h.
References clang::SwitchCase::KeywordLoc.
| SourceLocation clang::CaseStmt::getColonLoc | ( | ) | const [inline] |
Reimplemented from clang::SwitchCase.
Definition at line 708 of file Stmt.h.
References clang::SwitchCase::ColonLoc.
| SourceLocation clang::CaseStmt::getEllipsisLoc | ( | ) | const [inline] |
| Expr* clang::CaseStmt::getLHS | ( | ) | [inline] |
Definition at line 711 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt(), clang::Sema::CodeCompleteCase(), clang::CodeGen::CodeGenFunction::EmitCaseStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmtRange(), EvaluateSwitch(), FindCaseStatementsForValue(), GenerateMinimalPathDiagnostic(), and clang::ento::ExprEngine::processSwitch().
| const Expr* clang::CaseStmt::getLHS | ( | ) | const [inline] |
| SourceLocation clang::CaseStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::SwitchCase.
Definition at line 728 of file Stmt.h.
References clang::Stmt::getLocEnd(), and getSubStmt().
| SourceLocation clang::CaseStmt::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::SwitchCase.
Definition at line 727 of file Stmt.h.
References clang::SwitchCase::KeywordLoc.
| Expr* clang::CaseStmt::getRHS | ( | ) | [inline] |
Definition at line 712 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmtRange(), EvaluateSwitch(), FindCaseStatementsForValue(), and clang::ento::ExprEngine::processSwitch().
| const Expr* clang::CaseStmt::getRHS | ( | ) | const [inline] |
| Stmt* clang::CaseStmt::getSubStmt | ( | ) | [inline] |
Reimplemented from clang::SwitchCase.
Definition at line 713 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitCaseStmt(), clang::CodeGen::CodeGenFunction::EmitCaseStmtRange(), and getLocEnd().
| const Stmt* clang::CaseStmt::getSubStmt | ( | ) | const [inline] |
Reimplemented from clang::SwitchCase.
| void clang::CaseStmt::setCaseLoc | ( | SourceLocation | L | ) | [inline] |
Definition at line 705 of file Stmt.h.
References clang::SwitchCase::KeywordLoc.
| void clang::CaseStmt::setColonLoc | ( | SourceLocation | L | ) | [inline] |
Reimplemented from clang::SwitchCase.
Definition at line 709 of file Stmt.h.
References clang::SwitchCase::ColonLoc.
| void clang::CaseStmt::setEllipsisLoc | ( | SourceLocation | L | ) | [inline] |
| void clang::CaseStmt::setLHS | ( | Expr * | Val | ) | [inline] |
Definition at line 724 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt().
| void clang::CaseStmt::setRHS | ( | Expr * | Val | ) | [inline] |
Definition at line 725 of file Stmt.h.
Referenced by clang::Sema::ActOnFinishSwitchStmt().
| void clang::CaseStmt::setSubStmt | ( | Stmt * | S | ) | [inline] |
Definition at line 723 of file Stmt.h.
References S.
Referenced by clang::Sema::ActOnCaseStmtBody().