class AttributedStmt

Declaration

class AttributedStmt : public ValueStmt, private TrailingObjects { /* full declaration omitted */ };

Description

Represents an attribute applied to a statement. Represents an attribute applied to a statement. For example: [[omp::for(...)]] for (...) { ... }

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

Inherits from: ValueStmt, TrailingObjects

Member Variables

private clang::Stmt* SubStmt

Inherited from Stmt:

protected

Method Overview

  • private AttributedStmt(clang::SourceLocation Loc, ArrayRef<const clang::Attr *> Attrs, clang::Stmt * SubStmt)
  • private AttributedStmt(clang::Stmt::EmptyShell Empty, unsigned int NumAttrs)
  • public static clang::AttributedStmt * Create(const clang::ASTContext & C, clang::SourceLocation Loc, ArrayRef<const clang::Attr *> Attrs, clang::Stmt * SubStmt)
  • public static clang::AttributedStmt * CreateEmpty(const clang::ASTContext & C, unsigned int NumAttrs)
  • public clang::Stmt::child_range children()
  • public clang::Stmt::const_child_range children() const
  • public static bool classof(const clang::Stmt * T)
  • private const clang::Attr *const * getAttrArrayPtr() const
  • private const clang::Attr ** getAttrArrayPtr()
  • public clang::SourceLocation getAttrLoc() const
  • public ArrayRef<const clang::Attr *> getAttrs() const
  • public clang::SourceLocation getBeginLoc() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::Stmt * getSubStmt()
  • public const clang::Stmt * getSubStmt() const

Inherited from ValueStmt:

Inherited from Stmt:

Methods

AttributedStmt(clang::SourceLocation Loc,
               ArrayRef<const clang::Attr*> Attrs,
               clang::Stmt* SubStmt)

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

Parameters

clang::SourceLocation Loc
ArrayRef<const clang::Attr*> Attrs
clang::Stmt* SubStmt

AttributedStmt(clang::Stmt::EmptyShell Empty,
               unsigned int NumAttrs)

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

Parameters

clang::Stmt::EmptyShell Empty
unsigned int NumAttrs

static clang::AttributedStmt* Create(
    const clang::ASTContext& C,
    clang::SourceLocation Loc,
    ArrayRef<const clang::Attr*> Attrs,
    clang::Stmt* SubStmt)

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

Parameters

const clang::ASTContext& C
clang::SourceLocation Loc
ArrayRef<const clang::Attr*> Attrs
clang::Stmt* SubStmt

static clang::AttributedStmt* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumAttrs)

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

Parameters

const clang::ASTContext& C
unsigned int NumAttrs

clang::Stmt::child_range children()

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

clang::Stmt::const_child_range children() const

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

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

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

Parameters

const clang::Stmt* T

const clang::Attr* const* getAttrArrayPtr() const

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

const clang::Attr** getAttrArrayPtr()

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

clang::SourceLocation getAttrLoc() const

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

ArrayRef<const clang::Attr*> getAttrs() const

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

clang::SourceLocation getBeginLoc() const

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

clang::SourceLocation getEndLoc() const

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

clang::Stmt* getSubStmt()

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

const clang::Stmt* getSubStmt() const

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