clang API Documentation
This represents clause 'lastprivate' in the '#pragma omp ...' directives. More...
#include <OpenMPClause.h>


Public Member Functions | |
| StmtRange | children () |
Static Public Member Functions | |
| static OMPLastprivateClause * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, ArrayRef< Expr * > VL) |
| Creates clause with a list of variables VL. | |
| static OMPLastprivateClause * | CreateEmpty (const ASTContext &C, unsigned N) |
| Creates an empty clause with the place for N variables. | |
| static bool | classof (const OMPClause *T) |
This represents clause 'lastprivate' in the '#pragma omp ...' directives.
#pragma omp simd lastprivate(a,b)
In this example directive '#pragma omp simd' has clause 'lastprivate' with the variables 'a' and 'b'.
Definition at line 1141 of file OpenMPClause.h.
| StmtRange clang::OMPLastprivateClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 1182 of file OpenMPClause.h.
References clang::OMPVarListClause< OMPLastprivateClause >::varlist_begin(), and clang::OMPVarListClause< OMPLastprivateClause >::varlist_end().
| static bool clang::OMPLastprivateClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 1187 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
| OMPLastprivateClause * OMPLastprivateClause::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 1244 of file Stmt.cpp.
References clang::ASTContext::Allocate(), and clang::OMPVarListClause< T >::setVarRefs().
Referenced by clang::Sema::ActOnOpenMPLastprivateClause().
| OMPLastprivateClause * OMPLastprivateClause::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 1258 of file Stmt.cpp.
References clang::ASTContext::Allocate().
Referenced by clang::OMPClauseReader::readClause().