class OMPDepobjClause

Declaration

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

Description

This represents implicit clause 'depobj' for the '#pragma omp depobj' directive. This clause does not exist by itself, it can be only as a part of 'omp depobj' directive. This clause is introduced to keep the original structure of \a OMPExecutableDirective class and its derivatives and to use the existing infrastructure of clauses with the list of variables. In this example directive '#pragma omp depobj' has implicit clause 'depobj' with the depobj 'a'.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Expr* Depobj = nullptr
Chunk size.

Method Overview

  • public static clang::OMPDepobjClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, clang::Expr * Depobj)
  • public static clang::OMPDepobjClause * CreateEmpty(const clang::ASTContext & C)
  • private OMPDepobjClause(clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • private OMPDepobjClause()
  • 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 * getDepobj()
  • public const clang::Expr * getDepobj() const
  • public clang::SourceLocation getLParenLoc() const
  • private void setDepobj(clang::Expr * E)
  • 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::OMPDepobjClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc,
    clang::Expr* Depobj)

Description

Creates clause.

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

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.
clang::Expr* Depobj
depobj expression associated with the 'depobj' directive.

static clang::OMPDepobjClause* CreateEmpty(
    const clang::ASTContext& C)

Description

Creates an empty clause.

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

Parameters

const clang::ASTContext& C
AST context.

OMPDepobjClause(clang::SourceLocation StartLoc,
                clang::SourceLocation LParenLoc,
                clang::SourceLocation EndLoc)

Description

Build clause with number of variables \a N.

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

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPDepobjClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::Expr* getDepobj()

Description

Returns depobj expression associated with the clause.

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

const clang::Expr* getDepobj() const

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setDepobj(clang::Expr* E)

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

Parameters

clang::Expr* E

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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