clang 23.0.0git
OMPDefaultmapClause Class Reference

This represents 'defaultmap' clause in the '#pragma omp ...' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDefaultmapClause:
[legend]

Public Member Functions

 OMPDefaultmapClause (SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation MLoc, SourceLocation KLoc, SourceLocation EndLoc, OpenMPDefaultmapClauseKind Kind, OpenMPDefaultmapClauseModifier M)
 Build 'defaultmap' clause with defaultmap kind Kind.
 OMPDefaultmapClause ()
 Build an empty clause.
OpenMPDefaultmapClauseKind getDefaultmapKind () const
 Get kind of the clause.
OpenMPDefaultmapClauseModifier getDefaultmapModifier () const
 Get the modifier of the clause.
SourceLocation getLParenLoc ()
 Get location of '('.
SourceLocation getDefaultmapKindLoc ()
 Get kind location.
SourceLocation getDefaultmapModifierLoc () const
 Get the modifier location.
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 'defaultmap' clause in the '#pragma omp ...' directive.

#pragma omp target defaultmap(tofrom: scalar)

In this example directive '#pragma omp target' has 'defaultmap' clause of kind 'scalar' with modifier 'tofrom'.

Definition at line 7531 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDefaultmapClause() [1/2]

OMPDefaultmapClause::OMPDefaultmapClause ( SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation MLoc,
SourceLocation KLoc,
SourceLocation EndLoc,
OpenMPDefaultmapClauseKind Kind,
OpenMPDefaultmapClauseModifier M )
inline

Build 'defaultmap' clause with defaultmap kind Kind.

Parameters
StartLocStarting location of the clause.
LParenLocLocation of '('.
KLocStarting location of the argument.
EndLocEnding location of the clause.
KindDefaultmap kind.
MThe modifier applied to 'defaultmap' clause.
MLocLocation of the modifier

Definition at line 7586 of file OpenMPClause.h.

◆ OMPDefaultmapClause() [2/2]

OMPDefaultmapClause::OMPDefaultmapClause ( )
inlineexplicit

Build an empty clause.

Definition at line 7595 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range OMPDefaultmapClause::children ( )
inline

Definition at line 7618 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range OMPDefaultmapClause::children ( ) const
inline

Definition at line 7622 of file OpenMPClause.h.

◆ classof()

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

Definition at line 7633 of file OpenMPClause.h.

◆ getDefaultmapKind()

OpenMPDefaultmapClauseKind OMPDefaultmapClause::getDefaultmapKind ( ) const
inline

Get kind of the clause.

Definition at line 7600 of file OpenMPClause.h.

◆ getDefaultmapKindLoc()

SourceLocation OMPDefaultmapClause::getDefaultmapKindLoc ( )
inline

Get kind location.

Definition at line 7611 of file OpenMPClause.h.

◆ getDefaultmapModifier()

OpenMPDefaultmapClauseModifier OMPDefaultmapClause::getDefaultmapModifier ( ) const
inline

Get the modifier of the clause.

Definition at line 7603 of file OpenMPClause.h.

◆ getDefaultmapModifierLoc()

SourceLocation OMPDefaultmapClause::getDefaultmapModifierLoc ( ) const
inline

Get the modifier location.

Definition at line 7614 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPDefaultmapClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 7608 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range OMPDefaultmapClause::used_children ( )
inline

Definition at line 7626 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range OMPDefaultmapClause::used_children ( ) const
inline

Definition at line 7629 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 7532 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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