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 8940 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 8969 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 8979 of file OpenMPClause.h.

◆ OMPDestroyClause() [3/3]

OMPDestroyClause::OMPDestroyClause ( )
inline

Build an empty clause.

Definition at line 8983 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDestroyClause::children ( )
inline

Definition at line 8996 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPDestroyClause::children ( ) const
inline

Definition at line 9002 of file OpenMPClause.h.

◆ classof()

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

Definition at line 9015 of file OpenMPClause.h.

◆ getInteropVar()

Expr * OMPDestroyClause::getInteropVar ( ) const
inline

Returns the interop variable.

Definition at line 8994 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDestroyClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 8988 of file OpenMPClause.h.

◆ getVarLoc()

SourceLocation OMPDestroyClause::getVarLoc ( ) const
inline

Returns the location of the interop variable.

Definition at line 8991 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPDestroyClause::used_children ( )
inline

Definition at line 9008 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDestroyClause::used_children ( ) const
inline

Definition at line 9011 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 8941 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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