clang API Documentation

Public Member Functions | Static Public Member Functions
clang::OMPCopyprivateClause Class Reference

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

#include <OpenMPClause.h>

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

List of all members.

Public Member Functions

StmtRange children ()

Static Public Member Functions

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

Detailed Description

This represents clause 'copyprivate' in the '#pragma omp ...' directives.

 #pragma omp single copyprivate(a,b)

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

Definition at line 1582 of file OpenMPClause.h.


Member Function Documentation

static bool clang::OMPCopyprivateClause::classof ( const OMPClause T) [inline, static]

Reimplemented from clang::OMPClause.

Definition at line 1628 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

OMPCopyprivateClause * OMPCopyprivateClause::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 1356 of file Stmt.cpp.

References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().

Referenced by clang::Sema::ActOnOpenMPCopyprivateClause().

Creates an empty clause with N variables.

Parameters:
CAST context.
NThe number of variables.

Definition at line 1370 of file Stmt.cpp.

References clang::ASTContext::Allocate().

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


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