class OMPProcBindClause

Declaration

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

Description

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

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

Inherits from: OMPClause

Member Variables

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

Method Overview

Inherited from OMPClause:

Methods

OMPProcBindClause(llvm::omp::ProcBindKind A,
                  clang::SourceLocation ALoc,
                  clang::SourceLocation StartLoc,
                  clang::SourceLocation LParenLoc,
                  clang::SourceLocation EndLoc)

Description

Build 'proc_bind' clause with argument \a A ('master', 'close' or 'spread').

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

Parameters

llvm::omp::ProcBindKind A
Argument of the clause ('master', 'close' or 'spread').
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.

OMPProcBindClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

llvm::omp::ProcBindKind getProcBindKind() const

Description

Returns kind of the clause.

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

clang::SourceLocation getProcBindKindKwLoc() const

Description

Returns location of clause kind.

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

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setProcBindKind(llvm::omp::ProcBindKind K)

Description

Set kind of the clause.

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

Parameters

llvm::omp::ProcBindKind K
Kind of clause.

void setProcBindKindKwLoc(
    clang::SourceLocation KLoc)

Description

Set clause kind location.

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

Parameters

clang::SourceLocation KLoc
Kind location.

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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