clang  14.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]
Collaboration diagram for clang::OMPDeclarativeDirective< U >:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

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

Static Protected Member Functions

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

Protected Attributes

OMPChildrenData = nullptr
 Data, associated with the directive. More...
 

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

Definition at line 91 of file DeclOpenMP.h.

Referenced by clang::OMPDeclarativeDirective< ValueDecl >::getClause().

◆ 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.

◆ createEmptyDirective()

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

Definition at line 62 of file DeclOpenMP.h.

◆ 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.

◆ getNumClauses()

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

Get number of clauses.

Definition at line 79 of file DeclOpenMP.h.

◆ 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

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