class CompoundStmt

Declaration

class CompoundStmt : public Stmt, private TrailingObjects { /* full declaration omitted */ };

Description

CompoundStmt - This represents a group of statements like { stmt stmt }.

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

Inherits from: Stmt, TrailingObjects

Member Variables

private clang::SourceLocation LBraceLoc
The location of the opening "{".
private clang::SourceLocation RBraceLoc
The location of the closing "}".

Inherited from Stmt:

protected

Method Overview

  • private CompoundStmt(clang::Stmt::EmptyShell Empty)
  • private CompoundStmt(ArrayRef<clang::Stmt *> Stmts, clang::FPOptionsOverride FPFeatures, clang::SourceLocation LB, clang::SourceLocation RB)
  • public CompoundStmt(clang::SourceLocation Loc)
  • public static clang::CompoundStmt * Create(const clang::ASTContext & C, ArrayRef<clang::Stmt *> Stmts, clang::FPOptionsOverride FPFeatures, clang::SourceLocation LB, clang::SourceLocation RB)
  • public static clang::CompoundStmt * CreateEmpty(const clang::ASTContext & C, unsigned int NumStmts, bool HasFPFeatures)
  • public clang::CompoundStmt::body_const_range body() const
  • public clang::CompoundStmt::body_range body()
  • public const clang::Stmt * body_back() const
  • public clang::Stmt * body_back()
  • public clang::CompoundStmt::const_body_iterator body_begin() const
  • public clang::CompoundStmt::body_iterator body_begin()
  • public bool body_empty() const
  • public clang::CompoundStmt::body_iterator body_end()
  • public clang::CompoundStmt::const_body_iterator body_end() const
  • public clang::Stmt * body_front()
  • public const clang::Stmt * body_front() const
  • public clang::CompoundStmt::const_reverse_body_iterator body_rbegin() const
  • public clang::CompoundStmt::reverse_body_iterator body_rbegin()
  • public clang::CompoundStmt::const_reverse_body_iterator body_rend() const
  • public clang::CompoundStmt::reverse_body_iterator body_rend()
  • 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::SourceLocation getEndLoc() const
  • public clang::SourceLocation getLBracLoc() const
  • public clang::SourceLocation getRBracLoc() const
  • public clang::Stmt * getStmtExprResult()
  • public const clang::Stmt * getStmtExprResult() const
  • public clang::FPOptionsOverride getStoredFPFeatures() const
  • public bool hasStoredFPFeatures() const
  • private size_t numTrailingObjects(OverloadToken<clang::Stmt *>) const
  • private void setStmts(ArrayRef<clang::Stmt *> Stmts)
  • private void setStoredFPFeatures(clang::FPOptionsOverride F)
  • public unsigned int size() const

Inherited from Stmt:

Methods

CompoundStmt(clang::Stmt::EmptyShell Empty)

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

Parameters

clang::Stmt::EmptyShell Empty

CompoundStmt(ArrayRef<clang::Stmt*> Stmts,
             clang::FPOptionsOverride FPFeatures,
             clang::SourceLocation LB,
             clang::SourceLocation RB)

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

Parameters

ArrayRef<clang::Stmt*> Stmts
clang::FPOptionsOverride FPFeatures
clang::SourceLocation LB
clang::SourceLocation RB

CompoundStmt(clang::SourceLocation Loc)

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

Parameters

clang::SourceLocation Loc

static clang::CompoundStmt* Create(
    const clang::ASTContext& C,
    ArrayRef<clang::Stmt*> Stmts,
    clang::FPOptionsOverride FPFeatures,
    clang::SourceLocation LB,
    clang::SourceLocation RB)

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

Parameters

const clang::ASTContext& C
ArrayRef<clang::Stmt*> Stmts
clang::FPOptionsOverride FPFeatures
clang::SourceLocation LB
clang::SourceLocation RB

static clang::CompoundStmt* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumStmts,
    bool HasFPFeatures)

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

Parameters

const clang::ASTContext& C
unsigned int NumStmts
bool HasFPFeatures

clang::CompoundStmt::body_const_range body() const

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

clang::CompoundStmt::body_range body()

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

const clang::Stmt* body_back() const

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

clang::Stmt* body_back()

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

clang::CompoundStmt::const_body_iterator
body_begin() const

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

clang::CompoundStmt::body_iterator body_begin()

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

bool body_empty() const

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

clang::CompoundStmt::body_iterator body_end()

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

clang::CompoundStmt::const_body_iterator
body_end() const

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

clang::Stmt* body_front()

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

const clang::Stmt* body_front() const

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

clang::CompoundStmt::const_reverse_body_iterator
body_rbegin() const

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

clang::CompoundStmt::reverse_body_iterator
body_rbegin()

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

clang::CompoundStmt::const_reverse_body_iterator
body_rend() const

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

clang::CompoundStmt::reverse_body_iterator
body_rend()

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

clang::Stmt::const_child_range children() const

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

clang::Stmt::child_range children()

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

static bool classof(const clang::Stmt* T)

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

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

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

clang::SourceLocation getEndLoc() const

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

clang::SourceLocation getLBracLoc() const

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

clang::SourceLocation getRBracLoc() const

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

clang::Stmt* getStmtExprResult()

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

const clang::Stmt* getStmtExprResult() const

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

clang::FPOptionsOverride getStoredFPFeatures()
    const

Description

Get FPOptionsOverride from trailing storage.

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

bool hasStoredFPFeatures() const

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

size_t numTrailingObjects(
    OverloadToken<clang::Stmt*>) const

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

Parameters

OverloadToken<clang::Stmt*>

void setStmts(ArrayRef<clang::Stmt*> Stmts)

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

Parameters

ArrayRef<clang::Stmt*> Stmts

void setStoredFPFeatures(
    clang::FPOptionsOverride F)

Description

Set FPOptionsOverride in trailing storage. Used only by Serialization.

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

Parameters

clang::FPOptionsOverride F

unsigned int size() const

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