class SwitchCase
Declaration
class SwitchCase : public Stmt { /* full declaration omitted */ };
Description
Stmt - This represents one statement.
Declared at: clang/include/clang/AST/Stmt.h:1554
Inherits from: Stmt
Member Variables
- protected clang::SourceLocation ColonLoc
- The location of the ":".
- protected clang::SwitchCase* NextSwitchCase = nullptr
- A pointer to the following CaseStmt or DefaultStmt class, used by SwitchStmt.
Inherited from Stmt:
Method Overview
- protected SwitchCase(clang::Stmt::StmtClass SC, clang::SourceLocation KWLoc, clang::SourceLocation ColonLoc)
- protected SwitchCase(clang::Stmt::StmtClass SC, clang::Stmt::EmptyShell)
- public static bool classof(const clang::Stmt * T)
- public clang::SourceLocation getBeginLoc() const
- public clang::SourceLocation getColonLoc() const
- public inline clang::SourceLocation getEndLoc() const
- public clang::SourceLocation getKeywordLoc() const
- public const clang::SwitchCase * getNextSwitchCase() const
- public clang::SwitchCase * getNextSwitchCase()
- public inline clang::Stmt * getSubStmt()
- public const clang::Stmt * getSubStmt() const
- public void setColonLoc(clang::SourceLocation L)
- public void setKeywordLoc(clang::SourceLocation L)
- public void setNextSwitchCase(clang::SwitchCase * SC)
Inherited from Stmt:
- public EnableStatistics
- public IgnoreContainers
- public IgnoreContainers
- public PrintStats
- public ProcessODRHash
- public Profile
- public addStmtClass
- public child_begin
- public child_begin
- public child_end
- public child_end
- public children
- public children
- public determineLikelihoodConflict
- public dump
- public dump
- public dumpColor
- public dumpPretty
- public getBeginLoc
- public getEndLoc
- public getID
- public getLikelihood
- public getLikelihood
- public getLikelihood
- public getLikelihoodAttr
- public getSourceRange
- public getStmtClass
- public getStmtClassName
- public printJson
- public printPretty
- public printPrettyControlled
- public stripLabelLikeStatements
- public stripLabelLikeStatements
- public viewAST
Methods
¶SwitchCase(clang::Stmt::StmtClass SC,
clang::SourceLocation KWLoc,
clang::SourceLocation ColonLoc)
SwitchCase(clang::Stmt::StmtClass SC,
clang::SourceLocation KWLoc,
clang::SourceLocation ColonLoc)
Declared at: clang/include/clang/AST/Stmt.h:1566
Parameters
- clang::Stmt::StmtClass SC
- clang::SourceLocation KWLoc
- clang::SourceLocation ColonLoc
¶SwitchCase(clang::Stmt::StmtClass SC,
clang::Stmt::EmptyShell)
SwitchCase(clang::Stmt::StmtClass SC,
clang::Stmt::EmptyShell)
Declared at: clang/include/clang/AST/Stmt.h:1571
Parameters
- clang::Stmt::StmtClass SC
- clang::Stmt::EmptyShell
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/Stmt.h:1591
Parameters
- const clang::Stmt* T
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1588
¶clang::SourceLocation getColonLoc() const
clang::SourceLocation getColonLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1580
¶inline clang::SourceLocation getEndLoc() const
inline clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1589
¶clang::SourceLocation getKeywordLoc() const
clang::SourceLocation getKeywordLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1578
¶const clang::SwitchCase* getNextSwitchCase() const
const clang::SwitchCase* getNextSwitchCase() const
Declared at: clang/include/clang/AST/Stmt.h:1574
¶clang::SwitchCase* getNextSwitchCase()
clang::SwitchCase* getNextSwitchCase()
Declared at: clang/include/clang/AST/Stmt.h:1575
¶inline clang::Stmt* getSubStmt()
inline clang::Stmt* getSubStmt()
Declared at: clang/include/clang/AST/Stmt.h:1583
¶const clang::Stmt* getSubStmt() const
const clang::Stmt* getSubStmt() const
Declared at: clang/include/clang/AST/Stmt.h:1584
¶void setColonLoc(clang::SourceLocation L)
void setColonLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Stmt.h:1581
Parameters
¶void setKeywordLoc(clang::SourceLocation L)
void setKeywordLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Stmt.h:1579
Parameters
¶void setNextSwitchCase(clang::SwitchCase* SC)
void setNextSwitchCase(clang::SwitchCase* SC)
Declared at: clang/include/clang/AST/Stmt.h:1576