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

using child_iterator = StmtIterator
 
using const_child_iterator = ConstStmtIterator
 
using child_range = llvm::iterator_range< child_iterator >
 
using const_child_range = llvm::iterator_range< const_child_iterator >
 

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 51 of file OpenMPClause.h.

Member Typedef Documentation

◆ child_iterator

Definition at line 83 of file OpenMPClause.h.

◆ child_range

using clang::OMPClause::child_range = llvm::iterator_range<child_iterator>

Definition at line 85 of file OpenMPClause.h.

◆ const_child_iterator

Definition at line 84 of file OpenMPClause.h.

◆ const_child_range

Definition at line 86 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPClause()

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

Definition at line 62 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

OMPClause::child_range OMPClause::children ( )

Definition at line 26 of file OpenMPClause.cpp.

References getClauseKind().

Referenced by clang::Sema::ActOnOpenMPRegionEnd().

◆ children() [2/2]

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

Definition at line 89 of file OpenMPClause.h.

◆ classof()

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

Definition at line 94 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 70 of file OpenMPClause.h.

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

◆ getLocStart()

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

◆ isImplicit()

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

Definition at line 81 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 76 of file OpenMPClause.h.

◆ setLocStart()

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

Sets the starting location of the clause.

Definition at line 73 of file OpenMPClause.h.


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