clang API Documentation
This represents clause 'private' in the '#pragma omp ...' directives. More...
#include <OpenMPClause.h>
Public Types | |
typedef MutableArrayRef< Expr * > ::iterator | private_copies_iterator |
typedef ArrayRef< const Expr * > ::iterator | private_copies_const_iterator |
typedef llvm::iterator_range < private_copies_iterator > | private_copies_range |
typedef llvm::iterator_range < private_copies_const_iterator > | private_copies_const_range |
Public Member Functions | |
private_copies_range | private_copies () |
private_copies_const_range | private_copies () const |
StmtRange | children () |
Static Public Member Functions | |
static OMPPrivateClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, ArrayRef< Expr * > PrivateVL) |
Creates clause with a list of variables VL. | |
static OMPPrivateClause * | CreateEmpty (const ASTContext &C, unsigned N) |
Creates an empty clause with the place for N variables. | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
This represents clause 'private' in the '#pragma omp ...' directives.
#pragma omp parallel private(a,b)
In this example directive '#pragma omp parallel' has clause 'private' with the variables 'a' and 'b'.
Definition at line 928 of file OpenMPClause.h.
typedef ArrayRef<const Expr *>::iterator clang::OMPPrivateClause::private_copies_const_iterator |
Definition at line 987 of file OpenMPClause.h.
typedef llvm::iterator_range<private_copies_const_iterator> clang::OMPPrivateClause::private_copies_const_range |
Definition at line 990 of file OpenMPClause.h.
typedef MutableArrayRef<Expr *>::iterator clang::OMPPrivateClause::private_copies_iterator |
Definition at line 986 of file OpenMPClause.h.
typedef llvm::iterator_range<private_copies_iterator> clang::OMPPrivateClause::private_copies_range |
Definition at line 988 of file OpenMPClause.h.
StmtRange clang::OMPPrivateClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 1001 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPPrivateClause >::varlist_begin(), and clang::OMPVarListClause< OMPPrivateClause >::varlist_end().
static bool clang::OMPPrivateClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 1006 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
OMPPrivateClause * OMPPrivateClause::Create | ( | const ASTContext & | C, |
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc, | ||
ArrayRef< Expr * > | VL, | ||
ArrayRef< Expr * > | PrivateVL | ||
) | [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. |
PrivateVL | List of references to private copies with initializers. |
Definition at line 1186 of file Stmt.cpp.
References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().
Referenced by clang::Sema::ActOnOpenMPPrivateClause().
OMPPrivateClause * OMPPrivateClause::CreateEmpty | ( | const ASTContext & | C, |
unsigned | N | ||
) | [static] |
Creates an empty clause with the place for N variables.
C | AST context. |
N | The number of variables. |
Definition at line 1200 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().
Definition at line 992 of file OpenMPClause.h.
private_copies_const_range clang::OMPPrivateClause::private_copies | ( | ) | const [inline] |
Definition at line 996 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Reimplemented from clang::OMPVarListClause< OMPPrivateClause >.
Definition at line 929 of file OpenMPClause.h.