clang  3.9.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::AttributedStmt Class Reference

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

#include <Stmt.h>

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

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 830 of file Stmt.h.

Member Function Documentation

child_range clang::AttributedStmt::children ( )
inline

Definition at line 871 of file Stmt.h.

static bool clang::AttributedStmt::classof ( const Stmt T)
inlinestatic

Definition at line 873 of file Stmt.h.

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

Definition at line 322 of file Stmt.cpp.

References clang::ASTContext::Allocate().

SourceLocation clang::AttributedStmt::getAttrLoc ( ) const
inline

Definition at line 861 of file Stmt.h.

Referenced by clang::ASTNodeImporter::VisitAttributedStmt().

ArrayRef<const Attr*> clang::AttributedStmt::getAttrs ( ) const
inline
SourceLocation clang::AttributedStmt::getLocEnd ( ) const
inline

Definition at line 869 of file Stmt.h.

SourceLocation clang::AttributedStmt::getLocStart ( ) const
inline

Definition at line 868 of file Stmt.h.

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

Definition at line 866 of file Stmt.h.

Friends And Related Function Documentation

friend class ASTStmtReader
friend

Definition at line 835 of file Stmt.h.


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