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:

protected

Method Overview

Inherited from ValueStmt:

Inherited from Stmt:

Methods

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)

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

Declared at: clang/include/clang/AST/Stmt.h:1863

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/Stmt.h:1861

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

Declared at: clang/include/clang/AST/Stmt.h:1858

clang::LabelDecl* getDecl() const

Declared at: clang/include/clang/AST/Stmt.h:1849

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Stmt.h:1859

clang::SourceLocation getIdentLoc() const

Declared at: clang/include/clang/AST/Stmt.h:1846

const char* getName() const

Declared at: clang/include/clang/AST/Stmt.h:1852

const clang::Stmt* getSubStmt() const

Declared at: clang/include/clang/AST/Stmt.h:1855

clang::Stmt* getSubStmt()

Declared at: clang/include/clang/AST/Stmt.h:1853

bool isSideEntry() const

Declared at: clang/include/clang/AST/Stmt.h:1870

void setDecl(clang::LabelDecl* D)

Declared at: clang/include/clang/AST/Stmt.h:1850

Parameters

clang::LabelDecl* D

void setIdentLoc(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Stmt.h:1847

Parameters

clang::SourceLocation L

void setSideEntry(bool SE)

Declared at: clang/include/clang/AST/Stmt.h:1871

Parameters

bool SE

void setSubStmt(clang::Stmt* SS)

Declared at: clang/include/clang/AST/Stmt.h:1856

Parameters

clang::Stmt* SS