clang  3.9.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::OMPClause Class Reference

This is a basic class for representing single OpenMP clause. More...

#include <OpenMPClause.h>

Inheritance diagram for clang::OMPClause:
[legend]

Public Types

typedef StmtIterator child_iterator
 
typedef ConstStmtIterator const_child_iterator
 
typedef llvm::iterator_range
< child_iterator
child_range
 
typedef llvm::iterator_range
< const_child_iterator
const_child_range
 

Public Member Functions

SourceLocation getLocStart () const
 Returns the starting location of the clause. More...
 
SourceLocation getLocEnd () const
 Returns the ending location of the clause. More...
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause. More...
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause. More...
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.). More...
 
bool isImplicit () const
 
child_range children ()
 
const_child_range children () const
 

Static Public Member Functions

static bool classof (const OMPClause *)
 

Protected Member Functions

 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Detailed Description

This is a basic class for representing single OpenMP clause.

Definition at line 32 of file OpenMPClause.h.

Member Typedef Documentation

Definition at line 60 of file OpenMPClause.h.

typedef llvm::iterator_range<child_iterator> clang::OMPClause::child_range

Definition at line 62 of file OpenMPClause.h.

Definition at line 61 of file OpenMPClause.h.

Definition at line 63 of file OpenMPClause.h.

Constructor & Destructor Documentation

clang::OMPClause::OMPClause ( OpenMPClauseKind  K,
SourceLocation  StartLoc,
SourceLocation  EndLoc 
)
inlineprotected

Definition at line 41 of file OpenMPClause.h.

Member Function Documentation

OMPClause::child_range OMPClause::children ( )

Definition at line 20 of file OpenMPClause.cpp.

References getClauseKind().

Referenced by children().

const_child_range clang::OMPClause::children ( ) const
inline

Definition at line 66 of file OpenMPClause.h.

References children().

static bool clang::OMPClause::classof ( const OMPClause )
inlinestatic

Definition at line 70 of file OpenMPClause.h.

OpenMPClauseKind clang::OMPClause::getClauseKind ( ) const
inline
SourceLocation clang::OMPClause::getLocEnd ( ) const
inline

Returns the ending location of the clause.

Definition at line 48 of file OpenMPClause.h.

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and clang::OMPClauseWriter::writeClause().

SourceLocation clang::OMPClause::getLocStart ( ) const
inline
bool clang::OMPClause::isImplicit ( ) const
inline

Definition at line 58 of file OpenMPClause.h.

References clang::SourceLocation::isInvalid().

void clang::OMPClause::setLocEnd ( SourceLocation  Loc)
inline

Sets the ending location of the clause.

Definition at line 53 of file OpenMPClause.h.

Referenced by clang::OMPClauseReader::readClause().

void clang::OMPClause::setLocStart ( SourceLocation  Loc)
inline

Sets the starting location of the clause.

Definition at line 51 of file OpenMPClause.h.

Referenced by clang::OMPClauseReader::readClause().


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