clang 23.0.0git
OMPBindClause Class Referencefinal

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

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for OMPBindClause:
[legend]

Public Member Functions

SourceLocation getLParenLoc () const
 Returns the location of '('.
OpenMPBindClauseKind getBindKind () const
 Returns kind of the clause.
SourceLocation getBindKindLoc () const
 Returns location of clause kind.

Static Public Member Functions

static OMPBindClauseCreate (const ASTContext &C, OpenMPBindClauseKind K, SourceLocation KLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'bind' clause with kind K ('teams', 'parallel', or 'thread').
static OMPBindClauseCreateEmpty (const ASTContext &C)
 Build an empty 'bind' clause.

Friends

class OMPClauseReader

Detailed Description

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

#pragma omp loop bind(parallel)

Definition at line 9558 of file OpenMPClause.h.

Member Function Documentation

◆ Create()

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

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

Parameters
CAST context
KBinding kind of the clause ('teams', 'parallel' or 'thread').
KLocStarting location of the binding kind.
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 1801 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::SemaOpenMP::ActOnOpenMPBindClause().

◆ CreateEmpty()

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

Build an empty 'bind' clause.

Parameters
CAST context

Definition at line 1807 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::OMPClauseReader::readClause().

◆ getBindKind()

OpenMPBindClauseKind OMPBindClause::getBindKind ( ) const
inline

Returns kind of the clause.

Definition at line 9617 of file OpenMPClause.h.

◆ getBindKindLoc()

SourceLocation OMPBindClause::getBindKindLoc ( ) const
inline

Returns location of clause kind.

Definition at line 9620 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPBindClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 9614 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9559 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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