clang  6.0.0svn
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 "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPClause:
Inheritance graph
[legend]

Public Types

typedef StmtIterator child_iterator
 
typedef ConstStmtIterator const_child_iterator
 
typedef llvm::iterator_range< child_iteratorchild_range
 
typedef llvm::iterator_range< const_child_iteratorconst_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 33 of file OpenMPClause.h.

Member Typedef Documentation

◆ child_iterator

Definition at line 61 of file OpenMPClause.h.

◆ child_range

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

Definition at line 63 of file OpenMPClause.h.

◆ const_child_iterator

Definition at line 62 of file OpenMPClause.h.

◆ const_child_range

Definition at line 64 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPClause()

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

Definition at line 42 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

OMPClause::child_range OMPClause::children ( )

Definition at line 20 of file OpenMPClause.cpp.

References getClauseKind().

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and children().

◆ children() [2/2]

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

Definition at line 67 of file OpenMPClause.h.

References children().

◆ classof()

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

Definition at line 71 of file OpenMPClause.h.

◆ getClauseKind()

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

◆ getLocEnd()

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

Returns the ending location of the clause.

Definition at line 49 of file OpenMPClause.h.

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

◆ getLocStart()

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

◆ isImplicit()

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

Definition at line 59 of file OpenMPClause.h.

References clang::SourceLocation::isInvalid().

◆ setLocEnd()

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

Sets the ending location of the clause.

Definition at line 54 of file OpenMPClause.h.

◆ setLocStart()

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

Sets the starting location of the clause.

Definition at line 52 of file OpenMPClause.h.


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