class OMPFlushClause

Declaration

class OMPFlushClause : public OMPVarListClause,
                       private TrailingObjects { /* full declaration omitted */ };

Description

This represents implicit clause 'flush' for the '#pragma omp flush' directive. This clause does not exist by itself, it can be only as a part of 'omp flush' directive. This clause is introduced to keep the original structure of \a OMPExecutableDirective class and its derivatives and to use the existing infrastructure of clauses with the list of variables. In this example directive '#pragma omp flush' has implicit clause 'flush' with the variables 'a' and 'b'.

Declared at: clang/include/clang/AST/OpenMPClause.h:4582

Inherits from: OMPVarListClause, TrailingObjects

Method Overview

  • public static clang::OMPFlushClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, ArrayRef<clang::Expr *> VL)
  • public static clang::OMPFlushClause * CreateEmpty(const clang::ASTContext & C, unsigned int N)
  • private OMPFlushClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, unsigned int N)
  • private OMPFlushClause(unsigned int N)
  • public clang::OMPClause::child_range children()
  • public clang::OMPClause::const_child_range children() const
  • public static bool classof(const clang::OMPClause * T)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Methods

static clang::OMPFlushClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc,
    ArrayRef<clang::Expr*> VL)

Description

Creates clause with a list of variables \a VL.

Declared at: clang/include/clang/AST/OpenMPClause.h:4615

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
ArrayRef<clang::Expr*> VL
List of references to the variables.

static clang::OMPFlushClause* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int N)

Description

Creates an empty clause with \a N variables.

Declared at: clang/include/clang/AST/OpenMPClause.h:4623

Parameters

const clang::ASTContext& C
AST context.
unsigned int N
The number of variables.

OMPFlushClause(clang::SourceLocation StartLoc,
               clang::SourceLocation LParenLoc,
               clang::SourceLocation EndLoc,
               unsigned int N)

Description

Build clause with number of variables \a N.

Declared at: clang/include/clang/AST/OpenMPClause.h:4594

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
unsigned int N
Number of the variables in the clause.

OMPFlushClause(unsigned int N)

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:4602

Parameters

unsigned int N
Number of variables.

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:4625

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:4630

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

Declared at: clang/include/clang/AST/OpenMPClause.h:4642

Parameters

const clang::OMPClause* T

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:4635

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:4638