class OMPVarListClause
Declaration
template <class T>
class OMPVarListClause : public OMPClause { /* full declaration omitted */ };
Description
This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives.
Declared at: clang/include/clang/AST/OpenMPClause.h:192
Inherits from: OMPClause
Templates
- T
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private unsigned int NumVars
- Number of variables in the list.
Method Overview
- protected OMPVarListClause<T>(clang::OpenMPClauseKind K, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, unsigned int N)
- public clang::SourceLocation getLParenLoc() const
- protected MutableArrayRef<clang::Expr *> getVarRefs()
- public ArrayRef<const clang::Expr *> getVarRefs() const
- public void setLParenLoc(clang::SourceLocation Loc)
- protected void setVarRefs(ArrayRef<clang::Expr *> VL)
- public clang::OMPVarListClause::varlist_iterator varlist_begin()
- public clang::OMPVarListClause::varlist_const_iterator varlist_begin() const
- public bool varlist_empty() const
- public clang::OMPVarListClause::varlist_iterator varlist_end()
- public clang::OMPVarListClause::varlist_const_iterator varlist_end() const
- public unsigned int varlist_size() const
- public clang::OMPVarListClause::varlist_range varlists()
- public clang::OMPVarListClause::varlist_const_range varlists() const
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPVarListClause<T>(
clang::OpenMPClauseKind K,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc,
unsigned int N)
OMPVarListClause<T>(
clang::OpenMPClauseKind K,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc,
unsigned int N)
Description
Build a clause with \a N variables
Declared at: clang/include/clang/AST/OpenMPClause.h:209
Parameters
- clang::OpenMPClauseKind K
- Kind of the clause.
- clang::SourceLocation StartLoc
- Starting location of the clause (the clause keyword).
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- unsigned int N
- Number of the variables in the clause.
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:252
¶MutableArrayRef<clang::Expr*> getVarRefs()
MutableArrayRef<clang::Expr*> getVarRefs()
Description
Fetches list of variables associated with this clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:214
¶ArrayRef<const clang::Expr*> getVarRefs() const
ArrayRef<const clang::Expr*> getVarRefs() const
Description
Fetches list of all variables in the clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:255
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:249
Parameters
¶void setVarRefs(ArrayRef<clang::Expr*> VL)
void setVarRefs(ArrayRef<clang::Expr*> VL)
Description
Sets the list of variables for this clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:220
Parameters
- ArrayRef<clang::Expr*> VL
¶clang::OMPVarListClause::varlist_iterator
varlist_begin()
clang::OMPVarListClause::varlist_iterator
varlist_begin()
Declared at: clang/include/clang/AST/OpenMPClause.h:243
¶clang::OMPVarListClause::varlist_const_iterator
varlist_begin() const
clang::OMPVarListClause::varlist_const_iterator
varlist_begin() const
Declared at: clang/include/clang/AST/OpenMPClause.h:245
¶bool varlist_empty() const
bool varlist_empty() const
Declared at: clang/include/clang/AST/OpenMPClause.h:234
¶clang::OMPVarListClause::varlist_iterator
varlist_end()
clang::OMPVarListClause::varlist_iterator
varlist_end()
Declared at: clang/include/clang/AST/OpenMPClause.h:244
¶clang::OMPVarListClause::varlist_const_iterator
varlist_end() const
clang::OMPVarListClause::varlist_const_iterator
varlist_end() const
Declared at: clang/include/clang/AST/OpenMPClause.h:246
¶unsigned int varlist_size() const
unsigned int varlist_size() const
Declared at: clang/include/clang/AST/OpenMPClause.h:233
¶clang::OMPVarListClause::varlist_range varlists()
clang::OMPVarListClause::varlist_range varlists()
Declared at: clang/include/clang/AST/OpenMPClause.h:236
¶clang::OMPVarListClause::varlist_const_range
varlists() const
clang::OMPVarListClause::varlist_const_range
varlists() const
Declared at: clang/include/clang/AST/OpenMPClause.h:239