clang 23.0.0git
OMPDestroyClause Class Referencefinal

This represents 'destroy' clause in the '#pragma omp depobj' directive or the '#pragma omp interop' directive.. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDestroyClause:
[legend]

Public Member Functions

 OMPDestroyClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc)
 Build 'destroy' clause with an interop variable expression InteropVar.
 OMPDestroyClause (SourceLocation StartLoc, SourceLocation EndLoc)
 Build 'destroy' clause.
 OMPDestroyClause ()
 Build an empty clause.
SourceLocation getLParenLoc () const
 Returns the location of '('.
SourceLocation getVarLoc () const
 Returns the location of the interop variable.
Expr * getInteropVar () const
 Returns the interop variable.
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 'destroy' clause in the '#pragma omp depobj' directive or the '#pragma omp interop' directive..

#pragma omp depobj(a) destroy
#pragma omp interop destroy(obj)

In these examples directive '#pragma omp depobj' and '#pragma omp interop' have a 'destroy' clause. The 'interop' directive includes an object.

Definition at line 9046 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDestroyClause() [1/3]

OMPDestroyClause::OMPDestroyClause ( Expr * InteropVar,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation VarLoc,
SourceLocation EndLoc )
inline

Build 'destroy' clause with an interop variable expression InteropVar.

Parameters
InteropVarThe interop variable.
StartLocStarting location of the clause.
LParenLocLocation of '('.
VarLocLocation of the interop variable.
EndLocEnding location of the clause.

Definition at line 9075 of file OpenMPClause.h.

◆ OMPDestroyClause() [2/3]

OMPDestroyClause::OMPDestroyClause ( SourceLocation StartLoc,
SourceLocation EndLoc )
inline

Build 'destroy' clause.

Parameters
StartLocStarting location of the clause.
EndLocEnding location of the clause.

Definition at line 9085 of file OpenMPClause.h.

◆ OMPDestroyClause() [3/3]

OMPDestroyClause::OMPDestroyClause ( )
inline

Build an empty clause.

Definition at line 9089 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDestroyClause::children ( )
inline

Definition at line 9102 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPDestroyClause::children ( ) const
inline

Definition at line 9108 of file OpenMPClause.h.

◆ classof()

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

Definition at line 9121 of file OpenMPClause.h.

◆ getInteropVar()

Expr * OMPDestroyClause::getInteropVar ( ) const
inline

Returns the interop variable.

Definition at line 9100 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDestroyClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 9094 of file OpenMPClause.h.

◆ getVarLoc()

SourceLocation OMPDestroyClause::getVarLoc ( ) const
inline

Returns the location of the interop variable.

Definition at line 9097 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPDestroyClause::used_children ( )
inline

Definition at line 9114 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDestroyClause::used_children ( ) const
inline

Definition at line 9117 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9047 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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