clang 23.0.0git
OMPUseClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for 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.
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 the 'use' clause in '#pragma omp ...' directives.

#pragma omp interop use(obj)

Definition at line 8865 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPUseClause() [1/2]

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

◆ OMPUseClause() [2/2]

OMPUseClause::OMPUseClause ( )
inline

Build an empty clause.

Definition at line 8901 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPUseClause::children ( )
inline

Definition at line 8913 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPUseClause::children ( ) const
inline

Definition at line 8915 of file OpenMPClause.h.

◆ classof()

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

Definition at line 8926 of file OpenMPClause.h.

◆ getInteropVar()

Expr * OMPUseClause::getInteropVar ( ) const
inline

Returns the interop variable.

Definition at line 8911 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPUseClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 8905 of file OpenMPClause.h.

◆ getVarLoc()

SourceLocation OMPUseClause::getVarLoc ( ) const
inline

Returns the location of the interop variable.

Definition at line 8908 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPUseClause::used_children ( )
inline

Definition at line 8919 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPUseClause::used_children ( ) const
inline

Definition at line 8922 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 8866 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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