class OMPBindClause

Declaration

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

Description

This represents 'bind' clause in the '#pragma omp ...' directives.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::OpenMPBindClauseKind Kind = OMPC_BIND_unknown
The binding kind of 'bind' clause.
private clang::SourceLocation KindLoc
Start location of the kind in source code.

Method Overview

  • public static clang::OMPBindClause * Create(const clang::ASTContext & C, clang::OpenMPBindClauseKind K, clang::SourceLocation KLoc, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • public static clang::OMPBindClause * CreateEmpty(const clang::ASTContext & C)
  • private OMPBindClause(clang::OpenMPBindClauseKind K, clang::SourceLocation KLoc, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • private OMPBindClause()
  • public clang::OMPClause::child_range children()
  • public clang::OMPClause::const_child_range children() const
  • public static bool classof(const clang::OMPClause * T)
  • public clang::OpenMPBindClauseKind getBindKind() const
  • public clang::SourceLocation getBindKindLoc() const
  • public clang::SourceLocation getLParenLoc() const
  • private void setBindKind(clang::OpenMPBindClauseKind K)
  • private void setBindKindLoc(clang::SourceLocation KLoc)
  • private void setLParenLoc(clang::SourceLocation Loc)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClause:

Methods

static clang::OMPBindClause* Create(
    const clang::ASTContext& C,
    clang::OpenMPBindClauseKind K,
    clang::SourceLocation KLoc,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'bind' clause with kind \a K ('teams', 'parallel', or 'thread').

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

Parameters

const clang::ASTContext& C
AST context
clang::OpenMPBindClauseKind K
Binding kind of the clause ('teams', 'parallel' or 'thread').
clang::SourceLocation KLoc
Starting location of the binding kind.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

static clang::OMPBindClause* CreateEmpty(
    const clang::ASTContext& C)

Description

Build an empty 'bind' clause.

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

Parameters

const clang::ASTContext& C
AST context

OMPBindClause(clang::OpenMPBindClauseKind K,
              clang::SourceLocation KLoc,
              clang::SourceLocation StartLoc,
              clang::SourceLocation LParenLoc,
              clang::SourceLocation EndLoc)

Description

Build 'bind' clause with kind \a K ('teams', 'parallel', or 'thread').

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

Parameters

clang::OpenMPBindClauseKind K
Binding kind of the clause ('teams', 'parallel' or 'thread').
clang::SourceLocation KLoc
Starting location of the binding kind.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPBindClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::OpenMPBindClauseKind getBindKind() const

Description

Returns kind of the clause.

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

clang::SourceLocation getBindKindLoc() const

Description

Returns location of clause kind.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setBindKind(clang::OpenMPBindClauseKind K)

Description

Set the binding kind.

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

Parameters

clang::OpenMPBindClauseKind K

void setBindKindLoc(clang::SourceLocation KLoc)

Description

Set the binding kind location.

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

Parameters

clang::SourceLocation KLoc

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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