class OMPDefaultmapClause

Declaration

class OMPDefaultmapClause : public OMPClause { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/AST/OpenMPClause.h:6552

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::OpenMPDefaultmapClauseModifier Modifier = OMPC_DEFAULTMAP_MODIFIER_unknown
Modifiers for 'defaultmap' clause.
private clang::SourceLocation ModifierLoc
Locations of modifiers.
private clang::OpenMPDefaultmapClauseKind Kind = OMPC_DEFAULTMAP_unknown
A kind of the 'defaultmap' clause.
private clang::SourceLocation KindLoc
Start location of the defaultmap kind in source code.

Method Overview

Inherited from OMPClause:

Methods

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

Description

Build 'defaultmap' clause with defaultmap kind \a Kind

Declared at: clang/include/clang/AST/OpenMPClause.h:6607

Parameters

clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation MLoc
Location of the modifier
clang::SourceLocation KLoc
Starting location of the argument.
clang::SourceLocation EndLoc
Ending location of the clause.
clang::OpenMPDefaultmapClauseKind Kind
Defaultmap kind.
clang::OpenMPDefaultmapClauseModifier M
The modifier applied to 'defaultmap' clause.

OMPDefaultmapClause()

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:6616

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:6643

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:6639

static bool classof(const clang::OMPClause* T)

Declared at: clang/include/clang/AST/OpenMPClause.h:6654

Parameters

const clang::OMPClause* T

clang::OpenMPDefaultmapClauseKind
getDefaultmapKind() const

Description

Get kind of the clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:6621

clang::SourceLocation getDefaultmapKindLoc()

Description

Get kind location.

Declared at: clang/include/clang/AST/OpenMPClause.h:6632

clang::OpenMPDefaultmapClauseModifier
getDefaultmapModifier() const

Description

Get the modifier of the clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:6624

clang::SourceLocation getDefaultmapModifierLoc()
    const

Description

Get the modifier location.

Declared at: clang/include/clang/AST/OpenMPClause.h:6635

clang::SourceLocation getLParenLoc()

Description

Get location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:6629

void setDefaultmapKind(
    clang::OpenMPDefaultmapClauseKind K)

Description

Set defaultmap kind.

Declared at: clang/include/clang/AST/OpenMPClause.h:6573

Parameters

clang::OpenMPDefaultmapClauseKind K
Defaultmap kind.

void setDefaultmapKindLoc(
    clang::SourceLocation KLoc)

Description

Set defaultmap kind start location.

Declared at: clang/include/clang/AST/OpenMPClause.h:6595

Parameters

clang::SourceLocation KLoc
Defaultmap kind location.

void setDefaultmapModifier(
    clang::OpenMPDefaultmapClauseModifier M)

Description

Set the defaultmap modifier.

Declared at: clang/include/clang/AST/OpenMPClause.h:6578

Parameters

clang::OpenMPDefaultmapClauseModifier M
Defaultmap modifier.

void setDefaultmapModifierLoc(
    clang::SourceLocation Loc)

Description

Set location of the defaultmap modifier.

Declared at: clang/include/clang/AST/OpenMPClause.h:6583

Parameters

clang::SourceLocation Loc

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:6590

Parameters

clang::SourceLocation Loc
Location of '('.

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:6647

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:6650