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:

protected

Method Overview

Inherited from Stmt:

Methods

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)

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

Parameters

clang::Stmt::StmtClass SC
clang::Stmt::EmptyShell

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

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

clang::SourceLocation getColonLoc() const

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

inline clang::SourceLocation getEndLoc() const

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

clang::SourceLocation getKeywordLoc() const

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

const clang::SwitchCase* getNextSwitchCase() const

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

clang::SwitchCase* getNextSwitchCase()

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

inline clang::Stmt* getSubStmt()

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

const clang::Stmt* getSubStmt() const

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

void setColonLoc(clang::SourceLocation L)

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

Parameters

clang::SourceLocation L

void setKeywordLoc(clang::SourceLocation L)

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

Parameters

clang::SourceLocation L

void setNextSwitchCase(clang::SwitchCase* SC)

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

Parameters

clang::SwitchCase* SC