clang  13.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::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 clang::OMPDestroyClause:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPDestroyClause:
Collaboration graph
[legend]

Public Member Functions

 OMPDestroyClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc)
 Build 'destroy' clause with an interop variable expression InteropVar. More...
 
 OMPDestroyClause (SourceLocation StartLoc, SourceLocation EndLoc)
 Build 'destroy' clause. More...
 
 OMPDestroyClause ()
 Build an empty clause. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
SourceLocation getVarLoc () const
 Returns the location of the interop variable. More...
 
ExprgetInteropVar () const
 Returns the interop variable. More...
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 
const_child_range used_children () const
 
- Public Member Functions inherited from clang::OMPClause
SourceLocation getBeginLoc () const
 Returns the starting location of the clause. More...
 
SourceLocation getEndLoc () const
 Returns the ending location of the clause. More...
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause. More...
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause. More...
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.). More...
 
bool isImplicit () const
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 Get the iterator range for the expressions used in the clauses. More...
 
const_child_range used_children () const
 

Static Public Member Functions

static bool classof (const OMPClause *T)
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 

Friends

class OMPClauseReader
 

Additional Inherited Members

- Public Types inherited from clang::OMPClause
using child_iterator = StmtIterator
 
using const_child_iterator = ConstStmtIterator
 
using child_range = llvm::iterator_range< child_iterator >
 
using const_child_range = llvm::iterator_range< const_child_iterator >
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

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 7572 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDestroyClause() [1/3]

clang::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 7601 of file OpenMPClause.h.

◆ OMPDestroyClause() [2/3]

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

Build 'destroy' clause.

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

Definition at line 7611 of file OpenMPClause.h.

◆ OMPDestroyClause() [3/3]

clang::OMPDestroyClause::OMPDestroyClause ( )
inline

Build an empty clause.

Definition at line 7615 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPDestroyClause::children ( )
inline

Definition at line 7628 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range clang::OMPDestroyClause::children ( ) const
inline

Definition at line 7634 of file OpenMPClause.h.

◆ classof()

static bool clang::OMPDestroyClause::classof ( const OMPClause T)
inlinestatic

Definition at line 7647 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

◆ getInteropVar()

Expr* clang::OMPDestroyClause::getInteropVar ( ) const
inline

Returns the interop variable.

Definition at line 7626 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPDestroyClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 7620 of file OpenMPClause.h.

◆ getVarLoc()

SourceLocation clang::OMPDestroyClause::getVarLoc ( ) const
inline

Returns the location of the interop variable.

Definition at line 7623 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPDestroyClause::used_children ( )
inline

Definition at line 7640 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPDestroyClause::used_children ( ) const
inline

Definition at line 7643 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7573 of file OpenMPClause.h.


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