class OMPPriorityClause

Declaration

class OMPPriorityClause : public OMPClause,
                          public OMPClauseWithPreInit { /* full declaration omitted */ };

Description

This represents 'priority' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp teams' has clause 'priority' with single expression 'n'.

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

Inherits from: OMPClause, OMPClauseWithPreInit

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* Priority = nullptr
Priority number.

Method Overview

  • public OMPPriorityClause(clang::Expr * Priority, clang::Stmt * HelperPriority, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • public OMPPriorityClause()
  • public clang::OMPClause::child_range children()
  • public clang::OMPClause::const_child_range children() const
  • public static bool classof(const clang::OMPClause * T)
  • public clang::SourceLocation getLParenLoc() const
  • public clang::Expr * getPriority()
  • public clang::Expr * getPriority() const
  • public void setLParenLoc(clang::SourceLocation Loc)
  • private void setPriority(clang::Expr * E)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClauseWithPreInit:

Inherited from OMPClause:

Methods

OMPPriorityClause(
    clang::Expr* Priority,
    clang::Stmt* HelperPriority,
    clang::OpenMPDirectiveKind CaptureRegion,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'priority' clause.

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

Parameters

clang::Expr* Priority
Expression associated with this clause.
clang::Stmt* HelperPriority
Helper priority for the construct.
clang::OpenMPDirectiveKind CaptureRegion
Innermost OpenMP region where expressions in this clause must be captured.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPPriorityClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

clang::Expr* getPriority()

Description

Return Priority number.

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

clang::Expr* getPriority() const

Description

Return Priority number.

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

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setPriority(clang::Expr* E)

Description

Set the Priority number.

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

Parameters

clang::Expr* E
Priority number.

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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