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:
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:
- 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
¶AttributedStmt(clang::SourceLocation Loc,
ArrayRef<const clang::Attr*> Attrs,
clang::Stmt* SubStmt)
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)
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)
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)
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()
clang::Stmt::child_range children()
Declared at: clang/include/clang/AST/Stmt.h:1924
¶clang::Stmt::const_child_range children() const
clang::Stmt::const_child_range children() const
Declared at: clang/include/clang/AST/Stmt.h:1926
¶static bool classof(const clang::Stmt* T)
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
const clang::Attr* const* getAttrArrayPtr() const
Declared at: clang/include/clang/AST/Stmt.h:1901
¶const clang::Attr** getAttrArrayPtr()
const clang::Attr** getAttrArrayPtr()
Declared at: clang/include/clang/AST/Stmt.h:1904
¶clang::SourceLocation getAttrLoc() const
clang::SourceLocation getAttrLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1913
¶ArrayRef<const clang::Attr*> getAttrs() const
ArrayRef<const clang::Attr*> getAttrs() const
Declared at: clang/include/clang/AST/Stmt.h:1914
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1921
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Stmt.h:1922
¶clang::Stmt* getSubStmt()
clang::Stmt* getSubStmt()
Declared at: clang/include/clang/AST/Stmt.h:1918
¶const clang::Stmt* getSubStmt() const
const clang::Stmt* getSubStmt() const
Declared at: clang/include/clang/AST/Stmt.h:1919