class OMPAlignClause

Declaration

class OMPAlignClause : public OMPClause { /* full declaration omitted */ };

Description

This represents the 'align' clause in the '#pragma omp allocate' directive. In this example directive '#pragma omp allocate' has simple 'allocator' clause with the allocator 'omp_default_mem_alloc' and align clause with value of 8.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* Alignment = nullptr
Alignment specified with align clause.

Method Overview

  • public static clang::OMPAlignClause * Create(const clang::ASTContext & C, clang::Expr * A, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • private OMPAlignClause(clang::Expr * A, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • private OMPAlignClause()
  • 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 * getAlignment() const
  • public clang::SourceLocation getLParenLoc() const
  • private void setAlignment(clang::Expr * A)
  • private void setLParenLoc(clang::SourceLocation Loc)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClause:

Methods

static clang::OMPAlignClause* Create(
    const clang::ASTContext& C,
    clang::Expr* A,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'align' clause with the given alignment

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

Parameters

const clang::ASTContext& C
clang::Expr* A
Alignment value.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPAlignClause(clang::Expr* A,
               clang::SourceLocation StartLoc,
               clang::SourceLocation LParenLoc,
               clang::SourceLocation EndLoc)

Description

Build 'align' clause with the given alignment

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

Parameters

clang::Expr* A
Alignment value.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPAlignClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

static bool classof(const clang::OMPClause* T)

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

Parameters

const clang::OMPClause* T

clang::Expr* getAlignment() const

Description

Returns alignment

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setAlignment(clang::Expr* A)

Description

Set alignment value.

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

Parameters

clang::Expr* A

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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