clang 23.0.0git
OMPFlushClause Class Referencefinal

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 OMPExecutableDirective class and its derivatives and to use the existing infrastructure of clauses with the list of variables. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPFlushClause:
[legend]

Public Member Functions

child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static OMPFlushClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL)
 Creates clause with a list of variables VL.
static OMPFlushClauseCreateEmpty (const ASTContext &C, unsigned N)
 Creates an empty clause with N variables.
static bool classof (const OMPClause *T)

Detailed 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 OMPExecutableDirective class and its derivatives and to use the existing infrastructure of clauses with the list of variables.

#pragma omp flush(a,b)

In this example directive '#pragma omp flush' has implicit clause 'flush' with the variables 'a' and 'b'.

Definition at line 5415 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPFlushClause::children ( )
inline

Definition at line 5458 of file OpenMPClause.h.

Referenced by children().

◆ children() [2/2]

const_child_range OMPFlushClause::children ( ) const
inline

Definition at line 5463 of file OpenMPClause.h.

References children().

◆ classof()

bool OMPFlushClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 5474 of file OpenMPClause.h.

◆ Create()

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

Creates clause with a list of variables VL.

Parameters
CAST context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
VLList of references to the variables.

Definition at line 1080 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::SemaOpenMP::ActOnOpenMPFlushClause().

◆ CreateEmpty()

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

Creates an empty clause with N variables.

Parameters
CAST context.
NThe number of variables.

Definition at line 1092 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::OMPClauseReader::readClause().

◆ used_children() [1/2]

child_range OMPFlushClause::used_children ( )
inline

Definition at line 5467 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPFlushClause::used_children ( ) const
inline

Definition at line 5470 of file OpenMPClause.h.


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