class LabelStmt
Declaration
class LabelStmt : public ValueStmt { /* full declaration omitted */ };
Description
LabelStmt - Represents a label, which has a substatement. For example: foo: return;
Declared at: clang/include/clang/AST/Stmt.h:1831
Inherits from: ValueStmt
Member Variables
- private clang::LabelDecl* TheDecl
- private clang::Stmt* SubStmt
- private bool SideEntry = false
Inherited from Stmt:
Method Overview
- public LabelStmt(clang::Stmt::EmptyShell Empty)
- public LabelStmt(clang::SourceLocation IL, clang::LabelDecl * D, clang::Stmt * substmt)
- public clang::Stmt::const_child_range children() const
- public clang::Stmt::child_range children()
- public static bool classof(const clang::Stmt * T)
- public clang::SourceLocation getBeginLoc() const
- public clang::LabelDecl * getDecl() const
- public clang::SourceLocation getEndLoc() const
- public clang::SourceLocation getIdentLoc() const
- public const char * getName() const
- public const clang::Stmt * getSubStmt() const
- public clang::Stmt * getSubStmt()
- public bool isSideEntry() const
- public void setDecl(clang::LabelDecl * D)
- public void setIdentLoc(clang::SourceLocation L)
- public void setSideEntry(bool SE)
- public void setSubStmt(clang::Stmt * SS)
Inherited from ValueStmt:
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
¶LabelStmt(clang::Stmt::EmptyShell Empty)
LabelStmt(clang::Stmt::EmptyShell Empty)
Description
Build an empty label statement.
Declared at: clang/include/clang/AST/Stmt.h:1844
Parameters
- clang::Stmt::EmptyShell Empty
¶LabelStmt(clang::SourceLocation IL,
clang::LabelDecl* D,
clang::Stmt* substmt)
LabelStmt(clang::SourceLocation IL,
clang::LabelDecl* D,
clang::Stmt* substmt)
Description
Build a label statement.
Declared at: clang/include/clang/AST/Stmt.h:1838
Parameters
- clang::SourceLocation IL
- clang::LabelDecl* D
- clang::Stmt* substmt
¶clang::Stmt::const_child_range children() const
clang::Stmt::const_child_range children() const
Declared at: clang/include/clang/AST/Stmt.h:1863
¶clang::Stmt::child_range children()
clang::Stmt::child_range children()
Declared at: clang/include/clang/AST/Stmt.h:1861
¶static bool classof(const clang::Stmt* T)
static bool classof(const clang::Stmt* T)
Declared at: clang/include/clang/AST/Stmt.h:1867
Parameters
- const clang::Stmt* T
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1858
¶clang::LabelDecl* getDecl() const
clang::LabelDecl* getDecl() const
Declared at: clang/include/clang/AST/Stmt.h:1849
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1859
¶clang::SourceLocation getIdentLoc() const
clang::SourceLocation getIdentLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1846
¶const char* getName() const
const char* getName() const
Declared at: clang/include/clang/AST/Stmt.h:1852
¶const clang::Stmt* getSubStmt() const
const clang::Stmt* getSubStmt() const
Declared at: clang/include/clang/AST/Stmt.h:1855
¶clang::Stmt* getSubStmt()
clang::Stmt* getSubStmt()
Declared at: clang/include/clang/AST/Stmt.h:1853
¶bool isSideEntry() const
bool isSideEntry() const
Declared at: clang/include/clang/AST/Stmt.h:1870
¶void setDecl(clang::LabelDecl* D)
void setDecl(clang::LabelDecl* D)
Declared at: clang/include/clang/AST/Stmt.h:1850
Parameters
¶void setIdentLoc(clang::SourceLocation L)
void setIdentLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Stmt.h:1847
Parameters
¶void setSideEntry(bool SE)
void setSideEntry(bool SE)
Declared at: clang/include/clang/AST/Stmt.h:1871
Parameters
- bool SE
¶void setSubStmt(clang::Stmt* SS)
void setSubStmt(clang::Stmt* SS)
Declared at: clang/include/clang/AST/Stmt.h:1856
Parameters
- clang::Stmt* SS