clang API Documentation
Represents an attribute applied to a statement. More...
#include <Stmt.h>
Public Member Functions | |
SourceLocation | getAttrLoc () const |
ArrayRef< const Attr * > | getAttrs () const |
Stmt * | getSubStmt () |
const Stmt * | getSubStmt () const |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getLocEnd () const LLVM_READONLY |
child_range | children () |
Static Public Member Functions | |
static AttributedStmt * | Create (const ASTContext &C, SourceLocation Loc, ArrayRef< const Attr * > Attrs, Stmt *SubStmt) |
static AttributedStmt * | CreateEmpty (const ASTContext &C, unsigned NumAttrs) |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
Represents an attribute applied to a statement.
Represents an attribute applied to a statement. For example: [[omp::for(...)]] for (...) { ... }
child_range clang::AttributedStmt::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
static bool clang::AttributedStmt::classof | ( | const Stmt * | T | ) | [inline, static] |
Definition at line 864 of file Stmt.h.
References clang::Stmt::getStmtClass().
AttributedStmt * AttributedStmt::Create | ( | const ASTContext & | C, |
SourceLocation | Loc, | ||
ArrayRef< const Attr * > | Attrs, | ||
Stmt * | SubStmt | ||
) | [static] |
Definition at line 305 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::Sema::ActOnAttributedStmt().
AttributedStmt * AttributedStmt::CreateEmpty | ( | const ASTContext & | C, |
unsigned | NumAttrs | ||
) | [static] |
Definition at line 314 of file Stmt.cpp.
References clang::ASTContext::Allocate().
SourceLocation clang::AttributedStmt::getAttrLoc | ( | ) | const [inline] |
ArrayRef<const Attr*> clang::AttributedStmt::getAttrs | ( | ) | const [inline] |
Definition at line 853 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitAttributedStmt().
SourceLocation clang::AttributedStmt::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Definition at line 860 of file Stmt.h.
References clang::Stmt::getLocEnd().
SourceLocation clang::AttributedStmt::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
Stmt* clang::AttributedStmt::getSubStmt | ( | ) | [inline] |
Definition at line 856 of file Stmt.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitAttributedStmt().
const Stmt* clang::AttributedStmt::getSubStmt | ( | ) | const [inline] |
friend class ASTStmtReader [friend] |
Reimplemented from clang::Stmt.