clang 23.0.0git
OMPNocontextClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPNocontextClause:
[legend]

Public Member Functions

 OMPNocontextClause (Expr *Cond, Stmt *HelperCond, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'nocontext' clause with condition Cond.
 OMPNocontextClause ()
 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 'nocontext' clause in the '#pragma omp ...' directive.

#pragma omp dispatch nocontext(a > 5)

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

Definition at line 9073 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPNocontextClause() [1/2]

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

Build 'nocontext' 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 9091 of file OpenMPClause.h.

Referenced by used_children().

◆ OMPNocontextClause() [2/2]

OMPNocontextClause::OMPNocontextClause ( )
inline

Build an empty clause.

Definition at line 9100 of file OpenMPClause.h.

Member Function Documentation

◆ getCondition()

Expr * OMPNocontextClause::getCondition ( ) const
inline

Returns condition.

Definition at line 9103 of file OpenMPClause.h.

◆ used_children() [1/2]

OMPClause::child_range OMPNocontextClause::used_children ( )

Definition at line 352 of file OpenMPClause.cpp.

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

Referenced by used_children().

◆ used_children() [2/2]

const_child_range OMPNocontextClause::used_children ( ) const
inline

Definition at line 9106 of file OpenMPClause.h.

References OMPNocontextClause(), and used_children().

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9076 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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