clang 23.0.0git
OMPOrderClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPOrderClause:
[legend]

Public Member Functions

 OMPOrderClause (OpenMPOrderClauseKind A, SourceLocation ALoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, OpenMPOrderClauseModifier Modifier, SourceLocation MLoc)
 Build 'order' clause with argument A ('concurrent').
 OMPOrderClause ()
 Build an empty clause.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
OpenMPOrderClauseKind getKind () const
 Returns kind of the clause.
SourceLocation getKindKwLoc () const
 Returns location of clause kind.
OpenMPOrderClauseModifier getModifier () const
 Returns Modifier of the clause.
SourceLocation getModifierKwLoc () const
 Returns location of clause modifier.
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 'order' clause in the '#pragma omp ...' directive.

#pragma omp simd order(concurrent)

In this example directive '#pragma omp parallel' has simple 'order' clause with kind 'concurrent'.

Definition at line 8648 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPOrderClause() [1/2]

OMPOrderClause::OMPOrderClause ( OpenMPOrderClauseKind A,
SourceLocation ALoc,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc,
OpenMPOrderClauseModifier Modifier,
SourceLocation MLoc )
inline

Build 'order' clause with argument A ('concurrent').

Parameters
AArgument of the clause ('concurrent').
ALocStarting location of the argument.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.
ModifierThe modifier applied to 'order' clause.
MLocLocation of the modifier

Definition at line 8696 of file OpenMPClause.h.

◆ OMPOrderClause() [2/2]

OMPOrderClause::OMPOrderClause ( )
inline

Build an empty clause.

Definition at line 8705 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPOrderClause::children ( )
inline

Definition at line 8726 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPOrderClause::children ( ) const
inline

Definition at line 8730 of file OpenMPClause.h.

◆ classof()

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

Definition at line 8741 of file OpenMPClause.h.

◆ getKind()

OpenMPOrderClauseKind OMPOrderClause::getKind ( ) const
inline

Returns kind of the clause.

Definition at line 8715 of file OpenMPClause.h.

Referenced by checkOrderedOrderSpecified().

◆ getKindKwLoc()

SourceLocation OMPOrderClause::getKindKwLoc ( ) const
inline

Returns location of clause kind.

Definition at line 8718 of file OpenMPClause.h.

Referenced by checkOrderedOrderSpecified().

◆ getLParenLoc()

SourceLocation OMPOrderClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 8712 of file OpenMPClause.h.

◆ getModifier()

OpenMPOrderClauseModifier OMPOrderClause::getModifier ( ) const
inline

Returns Modifier of the clause.

Definition at line 8721 of file OpenMPClause.h.

◆ getModifierKwLoc()

SourceLocation OMPOrderClause::getModifierKwLoc ( ) const
inline

Returns location of clause modifier.

Definition at line 8724 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPOrderClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 8709 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPOrderClause::used_children ( )
inline

Definition at line 8734 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPOrderClause::used_children ( ) const
inline

Definition at line 8737 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 8649 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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