clang 22.0.0git
clang::OMPUseClause Class Referencefinal

This represents the 'use' clause in '#pragma omp ...' directives. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPUseClause:
[legend]

Public Member Functions

 OMPUseClause (Expr *InteropVar, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation VarLoc, SourceLocation EndLoc)
 Build 'use' clause with and interop variable expression InteropVar.
 OMPUseClause ()
 Build an empty clause.
SourceLocation getLParenLoc () const
 Returns the location of '('.
SourceLocation getVarLoc () const
 Returns the location of the interop variable.
ExprgetInteropVar () const
 Returns the interop variable.
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.
SourceLocation getEndLoc () const
 Returns the ending location of the clause.
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause.
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause.
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.).
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.
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 the 'use' clause in '#pragma omp ...' directives.

#pragma omp interop use(obj)

Definition at line 8663 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPUseClause() [1/2]

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

Build 'use' clause with and 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 8692 of file OpenMPClause.h.

References clang::OMPClause::OMPClause().

◆ OMPUseClause() [2/2]

clang::OMPUseClause::OMPUseClause ( )
inline

Build an empty clause.

Definition at line 8699 of file OpenMPClause.h.

References clang::OMPClause::OMPClause().

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPUseClause::children ( )
inline

Definition at line 8711 of file OpenMPClause.h.

◆ children() [2/2]

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

Definition at line 8713 of file OpenMPClause.h.

◆ classof()

bool clang::OMPUseClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 8724 of file OpenMPClause.h.

References clang::OMPClause::OMPClause(), and clang::T.

◆ getInteropVar()

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

Returns the interop variable.

Definition at line 8709 of file OpenMPClause.h.

References clang::cast().

◆ getLParenLoc()

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

Returns the location of '('.

Definition at line 8703 of file OpenMPClause.h.

◆ getVarLoc()

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

Returns the location of the interop variable.

Definition at line 8706 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPUseClause::used_children ( )
inline

Definition at line 8717 of file OpenMPClause.h.

◆ used_children() [2/2]

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

Definition at line 8720 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 8664 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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