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

Inherited from OMPClause:

Methods

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()

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:295

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:308

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:310

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

Description

Returns allocator.

Declared at: clang/include/clang/AST/OpenMPClause.h:306

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:303

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)

Description

Sets the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:300

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:314

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:317