clang 22.0.0git
OMPMetaDirective Class Referencefinal

This represents '#pragma omp metadirective' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPMetaDirective:
[legend]

Public Member Functions

Stmt * getIfStmt () const

Static Public Member Functions

static OMPMetaDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt, Stmt *IfStmt)
static OMPMetaDirectiveCreateEmpty (const ASTContext &C, unsigned NumClauses, EmptyShell)
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp metadirective' directive.

#pragma omp metadirective when(user={condition(N>10)}: parallel for)

In this example directive '#pragma omp metadirective' has clauses 'when' with a dynamic user condition to check if a variable 'N > 10'

Definition at line 6151 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

bool OMPMetaDirective::classof ( const Stmt * T)
inlinestatic

Definition at line 6176 of file StmtOpenMP.h.

◆ Create()

OMPMetaDirective * OMPMetaDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
ArrayRef< OMPClause * > Clauses,
Stmt * AssociatedStmt,
Stmt * IfStmt )
static

Definition at line 263 of file StmtOpenMP.cpp.

References clang::C.

◆ CreateEmpty()

OMPMetaDirective * OMPMetaDirective::CreateEmpty ( const ASTContext & C,
unsigned NumClauses,
EmptyShell  )
static

Definition at line 274 of file StmtOpenMP.cpp.

References clang::C.

◆ getIfStmt()

Stmt * OMPMetaDirective::getIfStmt ( ) const
inline

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 6152 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 6153 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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