clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::AttributedStmt Class Reference

Represents an attribute applied to a statement. More...

#include <Stmt.h>

Inheritance diagram for clang::AttributedStmt:
Inheritance graph
[legend]
Collaboration diagram for clang::AttributedStmt:
Collaboration graph
[legend]

List of all members.

Public Member Functions

SourceLocation getAttrLoc () const
ArrayRef< const Attr * > getAttrs () const
StmtgetSubStmt ()
const StmtgetSubStmt () const
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static AttributedStmtCreate (const ASTContext &C, SourceLocation Loc, ArrayRef< const Attr * > Attrs, Stmt *SubStmt)
static AttributedStmtCreateEmpty (const ASTContext &C, unsigned NumAttrs)
static bool classof (const Stmt *T)

Friends

class ASTStmtReader

Detailed Description

Represents an attribute applied to a statement.

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

Definition at line 823 of file Stmt.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 862 of file Stmt.h.

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().

Definition at line 852 of file Stmt.h.

ArrayRef<const Attr*> clang::AttributedStmt::getAttrs ( ) const [inline]

Definition at line 853 of file Stmt.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitAttributedStmt().

Reimplemented from clang::Stmt.

Definition at line 860 of file Stmt.h.

References clang::Stmt::getLocEnd().

Reimplemented from clang::Stmt.

Definition at line 859 of file Stmt.h.

Definition at line 856 of file Stmt.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitAttributedStmt().

const Stmt* clang::AttributedStmt::getSubStmt ( ) const [inline]

Definition at line 857 of file Stmt.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 828 of file Stmt.h.


The documentation for this class was generated from the following files: