class OMPAllocatorClause
Declaration
class OMPAllocatorClause : public OMPClause { /* full declaration omitted */ };
Description
This represents 'allocator' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp allocate' has simple 'allocator' clause with the allocator 'omp_default_mem_alloc'.
Declared at: clang/include/clang/AST/OpenMPClause.h:270
Inherits from: OMPClause
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::Stmt* Allocator = nullptr
- Expression with the allocator.
Method Overview
- public OMPAllocatorClause(clang::Expr * A, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPAllocatorClause()
- 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 getLParenLoc() const
- private void setAllocator(clang::Expr * A)
- public void setLParenLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() 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
¶OMPAllocatorClause(
clang::Expr* A,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPAllocatorClause(
clang::Expr* A,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'allocator' clause with the given allocator.
Declared at: clang/include/clang/AST/OpenMPClause.h:289
Parameters
- clang::Expr* A
- Allocator.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPAllocatorClause()
OMPAllocatorClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:295
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:308
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:310
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:321
Parameters
- const clang::OMPClause* T
¶clang::Expr* getAllocator() const
clang::Expr* getAllocator() const
Description
Returns allocator.
Declared at: clang/include/clang/AST/OpenMPClause.h:306
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:303
¶void setAllocator(clang::Expr* A)
void setAllocator(clang::Expr* A)
Description
Set allocator.
Declared at: clang/include/clang/AST/OpenMPClause.h:280
Parameters
- clang::Expr* A
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:300
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:314
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:317