class OMPMetaDirective

Declaration

class OMPMetaDirective : public OMPExecutableDirective { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/AST/StmtOpenMP.h:5870

Inherits from: OMPExecutableDirective

Member Variables

private clang::Stmt* IfStmt

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPMetaDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, ArrayRef<clang::OMPClause *> Clauses, clang::Stmt * AssociatedStmt, clang::Stmt * IfStmt)
  • public static clang::OMPMetaDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, clang::Stmt::EmptyShell)
  • private OMPMetaDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
  • private OMPMetaDirective()
  • public static bool classof(const clang::Stmt * T)
  • public clang::Stmt * getIfStmt() const
  • private void setIfStmt(clang::Stmt * S)

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Declared at: clang/include/clang/AST/StmtOpenMP.h:5887

Parameters

const clang::ASTContext& C
clang::SourceLocation StartLoc
clang::SourceLocation EndLoc
ArrayRef<clang::OMPClause*> Clauses
clang::Stmt* AssociatedStmt
clang::Stmt* IfStmt

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

Declared at: clang/include/clang/AST/StmtOpenMP.h:5891

Parameters

const clang::ASTContext& C
unsigned int NumClauses
clang::Stmt::EmptyShell

OMPMetaDirective(clang::SourceLocation StartLoc,
                 clang::SourceLocation EndLoc)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5875

Parameters

clang::SourceLocation StartLoc
clang::SourceLocation EndLoc

OMPMetaDirective()

Declared at: clang/include/clang/AST/StmtOpenMP.h:5879

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5895

Parameters

const clang::Stmt* T

clang::Stmt* getIfStmt() const

Declared at: clang/include/clang/AST/StmtOpenMP.h:5893

void setIfStmt(clang::Stmt* S)

Declared at: clang/include/clang/AST/StmtOpenMP.h:5884

Parameters

clang::Stmt* S