clang API Documentation
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 <OpenMPClause.h>
Public Member Functions | |
StmtRange | children () |
Static Public Member Functions | |
static OMPFlushClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL) |
Creates clause with a list of variables VL. | |
static OMPFlushClause * | CreateEmpty (const ASTContext &C, unsigned N) |
Creates an empty clause with N variables. | |
static bool | classof (const OMPClause *T) |
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 1646 of file OpenMPClause.h.
StmtRange clang::OMPFlushClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 1687 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPFlushClause >::varlist_begin(), and clang::OMPVarListClause< OMPFlushClause >::varlist_end().
static bool clang::OMPFlushClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 1692 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
OMPFlushClause * OMPFlushClause::Create | ( | const ASTContext & | C, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc, | ||
ArrayRef< Expr * > | VL | ||
) | [static] |
Creates clause with a list of variables VL.
C | AST context. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
VL | List of references to the variables. |
Definition at line 1423 of file Stmt.cpp.
References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().
Referenced by clang::Sema::ActOnOpenMPFlushClause().
OMPFlushClause * OMPFlushClause::CreateEmpty | ( | const ASTContext & | C, |
unsigned | N | ||
) | [static] |
Creates an empty clause with N variables.
C | AST context. |
N | The number of variables. |
Definition at line 1437 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().