class OMPDefaultClause

Declaration

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

Description

This represents 'default' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp parallel' has simple 'default' clause with kind 'shared'.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private llvm::omp::DefaultKind Kind = llvm::omp::OMP_DEFAULT_unknown
A kind of the 'default' clause.
private clang::SourceLocation KindKwLoc
Start location of the kind in source code.

Method Overview

Inherited from OMPClause:

Methods

OMPDefaultClause(llvm::omp::DefaultKind A,
                 clang::SourceLocation ALoc,
                 clang::SourceLocation StartLoc,
                 clang::SourceLocation LParenLoc,
                 clang::SourceLocation EndLoc)

Description

Build 'default' clause with argument \a A ('none' or 'shared').

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

Parameters

llvm::omp::DefaultKind A
Argument of the clause ('none' or 'shared').
clang::SourceLocation ALoc
Starting location of the argument.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPDefaultClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

llvm::omp::DefaultKind getDefaultKind() const

Description

Returns kind of the clause.

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

clang::SourceLocation getDefaultKindKwLoc() const

Description

Returns location of clause kind.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setDefaultKind(llvm::omp::DefaultKind K)

Description

Set kind of the clauses.

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

Parameters

llvm::omp::DefaultKind K
Argument of clause.

void setDefaultKindKwLoc(
    clang::SourceLocation KLoc)

Description

Set argument location.

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

Parameters

clang::SourceLocation KLoc
Argument location.

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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