clang 23.0.0git
OMPPriorityClause Class Reference

This represents 'priority' clause in the '#pragma omp ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPPriorityClause:
[legend]

Public Member Functions

 OMPPriorityClause (Expr *Priority, Stmt *HelperPriority, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'priority' clause.
 OMPPriorityClause ()
 Build an empty clause.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
Expr * getPriority ()
 Return Priority number.
Expr * getPriority () const
 Return Priority number.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const

Static Public Member Functions

static bool classof (const OMPClause *T)

Friends

class OMPClauseReader

Detailed Description

This represents 'priority' clause in the '#pragma omp ...' directive.

#pragma omp task priority(n)

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

Definition at line 7056 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPPriorityClause() [1/2]

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

Build 'priority' clause.

Parameters
PriorityExpression associated with this clause.
HelperPriorityHelper priority for the construct.
CaptureRegionInnermost OpenMP region where expressions in this clause must be captured.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 7080 of file OpenMPClause.h.

Referenced by used_children().

◆ OMPPriorityClause() [2/2]

OMPPriorityClause::OMPPriorityClause ( )
inline

Build an empty clause.

Definition at line 7089 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPPriorityClause::children ( )
inline

Definition at line 7105 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPPriorityClause::children ( ) const
inline

Definition at line 7107 of file OpenMPClause.h.

◆ classof()

bool OMPPriorityClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 7116 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPPriorityClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 7097 of file OpenMPClause.h.

◆ getPriority() [1/2]

Expr * OMPPriorityClause::getPriority ( )
inline

Return Priority number.

Definition at line 7100 of file OpenMPClause.h.

◆ getPriority() [2/2]

Expr * OMPPriorityClause::getPriority ( ) const
inline

Return Priority number.

Definition at line 7103 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPPriorityClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 7094 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPPriorityClause::used_children ( )

Definition at line 340 of file OpenMPClause.cpp.

References clang::C, and getAddrOfExprAsWritten().

Referenced by used_children().

◆ used_children() [2/2]

const_child_range OMPPriorityClause::used_children ( ) const
inline

Definition at line 7112 of file OpenMPClause.h.

References OMPPriorityClause(), and used_children().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7057 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


The documentation for this class was generated from the following files: