clang 20.0.0git
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
clang::OMPDeclarativeDirective< U > Class Template Reference

This is a basic class for representing single OpenMP declarative directive. More...

#include "clang/AST/DeclOpenMP.h"

Inheritance diagram for clang::OMPDeclarativeDirective< U >:
Inheritance graph
[legend]

Public Member Functions

unsigned getNumClauses () const
 Get number of clauses.
 
OMPClausegetClause (unsigned I) const
 Returns specified clause.
 
ArrayRef< OMPClause * > clauses () const
 

Protected Member Functions

template<typename... Params>
 OMPDeclarativeDirective (Params &&... P)
 Build instance of directive.
 

Static Protected Member Functions

template<typename T , typename... Params>
static TcreateDirective (const ASTContext &C, DeclContext *DC, ArrayRef< OMPClause * > Clauses, unsigned NumChildren, Params &&... P)
 
template<typename T , typename... Params>
static TcreateEmptyDirective (const ASTContext &C, GlobalDeclID ID, unsigned NumClauses, unsigned NumChildren, Params &&... P)
 
static size_t size (unsigned NumClauses, unsigned NumChildren)
 

Protected Attributes

OMPChildrenData = nullptr
 Data, associated with the directive.
 

Friends

class ASTDeclReader
 
class ASTDeclWriter
 

Detailed Description

template<typename U>
class clang::OMPDeclarativeDirective< U >

This is a basic class for representing single OpenMP declarative directive.

Definition at line 30 of file DeclOpenMP.h.

Constructor & Destructor Documentation

◆ OMPDeclarativeDirective()

template<typename U >
template<typename... Params>
clang::OMPDeclarativeDirective< U >::OMPDeclarativeDirective ( Params &&...  P)
inlineprotected

Build instance of directive.

Definition at line 47 of file DeclOpenMP.h.

Member Function Documentation

◆ clauses()

template<typename U >
ArrayRef< OMPClause * > clang::OMPDeclarativeDirective< U >::clauses ( ) const
inline

◆ createDirective()

template<typename U >
template<typename T , typename... Params>
static T * clang::OMPDeclarativeDirective< U >::createDirective ( const ASTContext C,
DeclContext DC,
ArrayRef< OMPClause * >  Clauses,
unsigned  NumChildren,
Params &&...  P 
)
inlinestaticprotected

Definition at line 50 of file DeclOpenMP.h.

References clang::C, P, clang::OMPDeclarativeDirective< U >::size(), and clang::T.

◆ createEmptyDirective()

template<typename U >
template<typename T , typename... Params>
static T * clang::OMPDeclarativeDirective< U >::createEmptyDirective ( const ASTContext C,
GlobalDeclID  ID,
unsigned  NumClauses,
unsigned  NumChildren,
Params &&...  P 
)
inlinestaticprotected

Definition at line 62 of file DeclOpenMP.h.

References clang::C, ID, P, clang::OMPDeclarativeDirective< U >::size(), and clang::T.

◆ getClause()

template<typename U >
OMPClause * clang::OMPDeclarativeDirective< U >::getClause ( unsigned  I) const
inline

Returns specified clause.

Parameters
INumber of clause.

Definition at line 89 of file DeclOpenMP.h.

References clang::OMPDeclarativeDirective< U >::clauses().

◆ getNumClauses()

template<typename U >
unsigned clang::OMPDeclarativeDirective< U >::getNumClauses ( ) const
inline

Get number of clauses.

Definition at line 79 of file DeclOpenMP.h.

References clang::OMPDeclarativeDirective< U >::Data, and clang::OMPChildren::getNumClauses().

◆ size()

template<typename U >
static size_t clang::OMPDeclarativeDirective< U >::size ( unsigned  NumClauses,
unsigned  NumChildren 
)
inlinestaticprotected

Friends And Related Function Documentation

◆ ASTDeclReader

template<typename U >
friend class ASTDeclReader
friend

Definition at line 31 of file DeclOpenMP.h.

◆ ASTDeclWriter

template<typename U >
friend class ASTDeclWriter
friend

Definition at line 32 of file DeclOpenMP.h.

Member Data Documentation

◆ Data

template<typename U >
OMPChildren* clang::OMPDeclarativeDirective< U >::Data = nullptr
protected

Data, associated with the directive.

Definition at line 43 of file DeclOpenMP.h.

Referenced by clang::OMPDeclarativeDirective< U >::clauses(), and clang::OMPDeclarativeDirective< U >::getNumClauses().


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