class OMPFlushDirective

Declaration

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

Description

This represents '#pragma omp flush' directive. In this example directive '#pragma omp flush' has 2 arguments- variables 'a' and 'b'. 'omp flush' directive does not have clauses but have an optional list of variables to flush. This list of variables is stored within some fake clause FlushClause.

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

Inherits from: OMPExecutableDirective

Member Variables

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

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

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Description

Creates directive with a list of \a Clauses.

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

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending Location of the directive.
ArrayRef<clang::OMPClause*> Clauses
List of clauses (only single OMPFlushClause clause is allowed).

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

Description

Creates an empty directive with the place for \a NumClauses clauses.

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

Parameters

const clang::ASTContext& C
AST context.
unsigned int NumClauses
Number of clauses.
clang::Stmt::EmptyShell

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

Description

Build directive with the given start and end location.

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

Parameters

clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending location of the directive.

OMPFlushDirective()

Description

Build an empty directive.

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

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

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

Parameters

const clang::Stmt* T