clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::OMPPrivateClause Class Reference

This represents clause 'private' in the '#pragma omp ...' directives. More...

#include <OpenMPClause.h>

Inheritance diagram for clang::OMPPrivateClause:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPPrivateClause:
Collaboration graph
[legend]

List of all members.

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 OMPPrivateClauseCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL, ArrayRef< Expr * > PrivateVL)
 Creates clause with a list of variables VL.
static OMPPrivateClauseCreateEmpty (const ASTContext &C, unsigned N)
 Creates an empty clause with the place for N variables.
static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

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.


Member Typedef Documentation

typedef ArrayRef<const Expr *>::iterator clang::OMPPrivateClause::private_copies_const_iterator

Definition at line 987 of file OpenMPClause.h.

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.

Definition at line 988 of file OpenMPClause.h.


Member Function Documentation

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.

Parameters:
CAST context.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
VLList of references to the variables.
PrivateVLList 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().

Creates an empty clause with the place for N variables.

Parameters:
CAST context.
NThe 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.

Definition at line 996 of file OpenMPClause.h.


Friends And Related Function Documentation

friend class OMPClauseReader [friend]

Reimplemented from clang::OMPVarListClause< OMPPrivateClause >.

Definition at line 929 of file OpenMPClause.h.


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