clang 20.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::OMPDirectiveListClause< T > Class Template Reference

Class that represents a list of directive kinds (parallel, target, etc.) as used in absent, contains clauses. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPDirectiveListClause< T >:
Inheritance graph
[legend]

Public Member Functions

 OMPDirectiveListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned NumKinds)
 Build a clause with NumKinds directive kinds.
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 
const_child_range used_children () const
 
MutableArrayRef< OpenMPDirectiveKindgetDirectiveKinds ()
 
void setDirectiveKinds (ArrayRef< OpenMPDirectiveKind > DK)
 
SourceLocation getLParenLoc ()
 
void setLParenLoc (SourceLocation S)
 
- Public Member Functions inherited from clang::OMPClause
SourceLocation getBeginLoc () const
 Returns the starting location of the clause.
 
SourceLocation getEndLoc () const
 Returns the ending location of the clause.
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause.
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause.
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.).
 
bool isImplicit () const
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 Get the iterator range for the expressions used in the clauses.
 
const_child_range used_children () const
 

Protected Attributes

unsigned NumKinds
 Number of directive kinds listed in the clause.
 

Additional Inherited Members

- Public Types inherited from clang::OMPClause
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 >
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Detailed Description

template<class T>
class clang::OMPDirectiveListClause< T >

Class that represents a list of directive kinds (parallel, target, etc.) as used in absent, contains clauses.

Definition at line 347 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDirectiveListClause()

template<class T >
clang::OMPDirectiveListClause< T >::OMPDirectiveListClause ( OpenMPClauseKind  K,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc,
unsigned  NumKinds 
)
inline

Build a clause with NumKinds directive kinds.

Parameters
KThe clause kind.
StartLocStarting location of the clause (the clause keyword).
LParenLocLocation of '('.
EndLocEnding location of the clause.
NumKindsNumber of directive kinds listed in the clause.

Definition at line 363 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

template<class T >
child_range clang::OMPDirectiveListClause< T >::children ( )
inline

Definition at line 369 of file OpenMPClause.h.

◆ children() [2/2]

template<class T >
const_child_range clang::OMPDirectiveListClause< T >::children ( ) const
inline

Definition at line 373 of file OpenMPClause.h.

◆ getDirectiveKinds()

template<class T >
MutableArrayRef< OpenMPDirectiveKind > clang::OMPDirectiveListClause< T >::getDirectiveKinds ( )
inline

Definition at line 384 of file OpenMPClause.h.

References clang::OMPDirectiveListClause< T >::NumKinds, and clang::T.

◆ getLParenLoc()

template<class T >
SourceLocation clang::OMPDirectiveListClause< T >::getLParenLoc ( )
inline

Definition at line 400 of file OpenMPClause.h.

◆ setDirectiveKinds()

template<class T >
void clang::OMPDirectiveListClause< T >::setDirectiveKinds ( ArrayRef< OpenMPDirectiveKind DK)
inline

◆ setLParenLoc()

template<class T >
void clang::OMPDirectiveListClause< T >::setLParenLoc ( SourceLocation  S)
inline

Definition at line 402 of file OpenMPClause.h.

◆ used_children() [1/2]

template<class T >
child_range clang::OMPDirectiveListClause< T >::used_children ( )
inline

Definition at line 377 of file OpenMPClause.h.

◆ used_children() [2/2]

template<class T >
const_child_range clang::OMPDirectiveListClause< T >::used_children ( ) const
inline

Definition at line 380 of file OpenMPClause.h.

Member Data Documentation

◆ NumKinds

template<class T >
unsigned clang::OMPDirectiveListClause< T >::NumKinds
protected

Number of directive kinds listed in the clause.

Definition at line 353 of file OpenMPClause.h.

Referenced by clang::OMPDirectiveListClause< T >::getDirectiveKinds(), and clang::OMPDirectiveListClause< T >::setDirectiveKinds().


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