clang 23.0.0git
OMPNovariantsClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPNovariantsClause:
[legend]

Public Member Functions

 OMPNovariantsClause (Expr *Cond, Stmt *HelperCond, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'novariants' clause with condition Cond.
 OMPNovariantsClause ()
 Build an empty clause.
Expr * getCondition () const
 Returns condition.
child_range used_children ()
const_child_range used_children () const

Friends

class OMPClauseReader

Detailed Description

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

#pragma omp dispatch novariants(a > 5)

In this example directive '#pragma omp dispatch' has simple 'novariants' clause with condition 'a > 5'.

Definition at line 9027 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPNovariantsClause() [1/2]

OMPNovariantsClause::OMPNovariantsClause ( Expr * Cond,
Stmt * HelperCond,
OpenMPDirectiveKind CaptureRegion,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc )
inline

Build 'novariants' clause with condition Cond.

Parameters
CondCondition of the clause.
HelperCondHelper condition 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 9045 of file OpenMPClause.h.

Referenced by used_children().

◆ OMPNovariantsClause() [2/2]

OMPNovariantsClause::OMPNovariantsClause ( )
inline

Build an empty clause.

Definition at line 9055 of file OpenMPClause.h.

Member Function Documentation

◆ getCondition()

Expr * OMPNovariantsClause::getCondition ( ) const
inline

Returns condition.

Definition at line 9058 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPNovariantsClause::used_children ( )

Definition at line 346 of file OpenMPClause.cpp.

References clang::C, clang::children(), and getAddrOfExprAsWritten().

Referenced by used_children().

◆ used_children() [2/2]

const_child_range OMPNovariantsClause::used_children ( ) const
inline

Definition at line 9061 of file OpenMPClause.h.

References OMPNovariantsClause(), and used_children().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9030 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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