class OMPAllocateClause
Declaration
class OMPAllocateClause : public OMPVarListClause,
private TrailingObjects { /* full declaration omitted */ };
Description
This represents clause 'allocate' in the '#pragma omp ...' directives. In this example directive '#pragma omp parallel' has clause 'private' and clause 'allocate' for the variable 'a'.
Declared at: clang/include/clang/AST/OpenMPClause.h:408
Inherits from: OMPVarListClause, TrailingObjects
Member Variables
- private clang::Expr* Allocator = nullptr
- Allocator specified in the clause, or 'nullptr' if the default one is used.
- private clang::SourceLocation ColonLoc
- Position of the ':' delimiter in the clause;
Method Overview
- public static clang::OMPAllocateClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::Expr * Allocator, clang::SourceLocation ColonLoc, clang::SourceLocation EndLoc, ArrayRef<clang::Expr *> VL)
- public static clang::OMPAllocateClause * CreateEmpty(const clang::ASTContext & C, unsigned int N)
- private OMPAllocateClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::Expr * Allocator, clang::SourceLocation ColonLoc, clang::SourceLocation EndLoc, unsigned int N)
- private OMPAllocateClause(unsigned int N)
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::Expr * getAllocator() const
- public clang::SourceLocation getColonLoc() const
- private void setAllocator(clang::Expr * A)
- private void setColonLoc(clang::SourceLocation CL)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Methods
¶static clang::OMPAllocateClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::Expr* Allocator,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
ArrayRef<clang::Expr*> VL)
static clang::OMPAllocateClause* Create(
const clang::ASTContext& C,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::Expr* Allocator,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
ArrayRef<clang::Expr*> VL)
Description
Creates clause with a list of variables \a VL.
Declared at: clang/include/clang/AST/OpenMPClause.h:459
Parameters
- const clang::ASTContext& C
- AST context.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::Expr* Allocator
- Allocator expression.
- clang::SourceLocation ColonLoc
- Location of ':' delimiter.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- ArrayRef<clang::Expr*> VL
- List of references to the variables.
¶static clang::OMPAllocateClause* CreateEmpty(
const clang::ASTContext& C,
unsigned int N)
static clang::OMPAllocateClause* CreateEmpty(
const clang::ASTContext& C,
unsigned int N)
Description
Creates an empty clause with the place for \a N variables.
Declared at: clang/include/clang/AST/OpenMPClause.h:474
Parameters
- const clang::ASTContext& C
- AST context.
- unsigned int N
- The number of variables.
¶OMPAllocateClause(clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::Expr* Allocator,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
unsigned int N)
OMPAllocateClause(clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::Expr* Allocator,
clang::SourceLocation ColonLoc,
clang::SourceLocation EndLoc,
unsigned int N)
Description
Build clause with number of variables \a N.
Declared at: clang/include/clang/AST/OpenMPClause.h:429
Parameters
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::Expr* Allocator
- Allocator expression.
- clang::SourceLocation ColonLoc
- Location of ':' delimiter.
- clang::SourceLocation EndLoc
- Ending location of the clause.
- unsigned int N
- Number of the variables in the clause.
¶OMPAllocateClause(unsigned int N)
OMPAllocateClause(unsigned int N)
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:439
Parameters
- unsigned int N
- Number of variables.
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:476
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:481
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:493
Parameters
- const clang::OMPClause* T
¶clang::Expr* getAllocator() const
clang::Expr* getAllocator() const
Description
Returns the allocator expression or nullptr, if no allocator is specified.
Declared at: clang/include/clang/AST/OpenMPClause.h:465
¶clang::SourceLocation getColonLoc() const
clang::SourceLocation getColonLoc() const
Description
Returns the location of the ':' delimiter.
Declared at: clang/include/clang/AST/OpenMPClause.h:468
¶void setAllocator(clang::Expr* A)
void setAllocator(clang::Expr* A)
Declared at: clang/include/clang/AST/OpenMPClause.h:447
Parameters
- clang::Expr* A
¶void setColonLoc(clang::SourceLocation CL)
void setColonLoc(clang::SourceLocation CL)
Description
Sets location of ':' symbol in clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:445
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:486
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:489