clang  6.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
OMPDefaultmapClause Class Reference

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPDefaultmapClause:
Inheritance graph
[legend]
Collaboration diagram for OMPDefaultmapClause:
Collaboration graph
[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. More...
 
 OMPDefaultmapClause ()
 Build an empty clause. More...
 
OpenMPDefaultmapClauseKind getDefaultmapKind () const
 Get kind of the clause. More...
 
OpenMPDefaultmapClauseModifier getDefaultmapModifier () const
 Get the modifier of the clause. More...
 
SourceLocation getLParenLoc ()
 Get location of '('. More...
 
SourceLocation getDefaultmapKindLoc ()
 Get kind location. More...
 
SourceLocation getDefaultmapModifierLoc () const
 Get the modifier location. More...
 
child_range children ()
 

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

◆ OMPDefaultmapClause() [2/2]

OMPDefaultmapClause::OMPDefaultmapClause ( )
inlineexplicit

Build an empty clause.

Definition at line 4493 of file OpenMPClause.h.

Member Function Documentation

◆ children()

child_range OMPDefaultmapClause::children ( )
inline

Definition at line 4515 of file OpenMPClause.h.

◆ classof()

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

Definition at line 4519 of file OpenMPClause.h.

◆ getDefaultmapKind()

OpenMPDefaultmapClauseKind OMPDefaultmapClause::getDefaultmapKind ( ) const
inline

Get kind of the clause.

Definition at line 4497 of file OpenMPClause.h.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getDefaultmapKindLoc()

SourceLocation OMPDefaultmapClause::getDefaultmapKindLoc ( )
inline

Get kind location.

Definition at line 4508 of file OpenMPClause.h.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getDefaultmapModifier()

OpenMPDefaultmapClauseModifier OMPDefaultmapClause::getDefaultmapModifier ( ) const
inline

Get the modifier of the clause.

Definition at line 4500 of file OpenMPClause.h.

References Modifier.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getDefaultmapModifierLoc()

SourceLocation OMPDefaultmapClause::getDefaultmapModifierLoc ( ) const
inline

Get the modifier location.

Definition at line 4511 of file OpenMPClause.h.

References ModifierLoc.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

◆ getLParenLoc()

SourceLocation OMPDefaultmapClause::getLParenLoc ( )
inline

Get location of '('.

Definition at line 4505 of file OpenMPClause.h.

Referenced by clang::OMPClauseWriter::VisitOMPClauseWithPostUpdate().

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 4431 of file OpenMPClause.h.


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