class OMPDeclarativeDirective
Declaration
template <typename U>
class OMPDeclarativeDirective { /* full declaration omitted */ };
Description
This is a basic class for representing single OpenMP declarative directive.
Declared at: clang/include/clang/AST/DeclOpenMP.h:30
Templates
- U
Member Variables
- protected clang::OMPChildren* Data = nullptr
- Data, associated with the directive.
Method Overview
- protected template <typename... Params> OMPDeclarativeDirective<T>(Params &&... P)
- public ArrayRef<clang::OMPClause *> clauses() const
- protected template <typename T, typename... Params>static T * createDirective(const clang::ASTContext & C, clang::DeclContext * DC, ArrayRef<clang::OMPClause *> Clauses, unsigned int NumChildren, Params &&... P)
- protected template <typename T, typename... Params>static T * createEmptyDirective(const clang::ASTContext & C, unsigned int ID, unsigned int NumClauses, unsigned int NumChildren, Params &&... P)
- public clang::OMPClause * getClause(unsigned int I) const
- private MutableArrayRef<clang::OMPClause *> getClauses()
- public unsigned int getNumClauses() const
- protected static size_t size(unsigned int NumClauses, unsigned int NumChildren)
Methods
¶template <typename... Params>
OMPDeclarativeDirective<T>(Params&&... P)
template <typename... Params>
OMPDeclarativeDirective<T>(Params&&... P)
Description
Build instance of directive.
Declared at: clang/include/clang/AST/DeclOpenMP.h:47
Templates
- Params
Parameters
- Params&&... P
¶ArrayRef<clang::OMPClause*> clauses() const
ArrayRef<clang::OMPClause*> clauses() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:91
¶template <typename T, typename... Params>
static T* createDirective(
const clang::ASTContext& C,
clang::DeclContext* DC,
ArrayRef<clang::OMPClause*> Clauses,
unsigned int NumChildren,
Params&&... P)
template <typename T, typename... Params>
static T* createDirective(
const clang::ASTContext& C,
clang::DeclContext* DC,
ArrayRef<clang::OMPClause*> Clauses,
unsigned int NumChildren,
Params&&... P)
Declared at: clang/include/clang/AST/DeclOpenMP.h:50
Templates
- T
- Params
Parameters
- const clang::ASTContext& C
- clang::DeclContext* DC
- ArrayRef<clang::OMPClause*> Clauses
- unsigned int NumChildren
- Params&&... P
¶template <typename T, typename... Params>
static T* createEmptyDirective(
const clang::ASTContext& C,
unsigned int ID,
unsigned int NumClauses,
unsigned int NumChildren,
Params&&... P)
template <typename T, typename... Params>
static T* createEmptyDirective(
const clang::ASTContext& C,
unsigned int ID,
unsigned int NumClauses,
unsigned int NumChildren,
Params&&... P)
Declared at: clang/include/clang/AST/DeclOpenMP.h:62
Templates
- T
- Params
Parameters
- const clang::ASTContext& C
- unsigned int ID
- unsigned int NumClauses
- unsigned int NumChildren
- Params&&... P
¶clang::OMPClause* getClause(unsigned int I) const
clang::OMPClause* getClause(unsigned int I) const
Description
Returns specified clause.
Declared at: clang/include/clang/AST/DeclOpenMP.h:89
Parameters
- unsigned int I
- Number of clause.
¶MutableArrayRef<clang::OMPClause*> getClauses()
MutableArrayRef<clang::OMPClause*> getClauses()
Description
Get the clauses storage.
Declared at: clang/include/clang/AST/DeclOpenMP.h:35
¶unsigned int getNumClauses() const
unsigned int getNumClauses() const
Description
Get number of clauses.
Declared at: clang/include/clang/AST/DeclOpenMP.h:79
¶static size_t size(unsigned int NumClauses,
unsigned int NumChildren)
static size_t size(unsigned int NumClauses,
unsigned int NumChildren)
Declared at: clang/include/clang/AST/DeclOpenMP.h:72
Parameters
- unsigned int NumClauses
- unsigned int NumChildren