clang API Documentation
This represents 'proc_bind' clause in the '#pragma omp ...' directive. More...
#include <OpenMPClause.h>
Public Member Functions | |
OMPProcBindClause (OpenMPProcBindClauseKind A, SourceLocation ALoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
Build 'proc_bind' clause with argument A ('master', 'close' or 'spread'). | |
OMPProcBindClause () | |
Build an empty clause. | |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
OpenMPProcBindClauseKind | getProcBindKind () const |
Returns kind of the clause. | |
SourceLocation | getProcBindKindKwLoc () const |
Returns location of clause kind. | |
StmtRange | children () |
Static Public Member Functions | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
This represents 'proc_bind' clause in the '#pragma omp ...' directive.
#pragma omp parallel proc_bind(master)
In this example directive '#pragma omp parallel' has simple 'proc_bind' clause with kind 'master'.
Definition at line 496 of file OpenMPClause.h.
clang::OMPProcBindClause::OMPProcBindClause | ( | OpenMPProcBindClauseKind | A, |
SourceLocation | ALoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) | [inline] |
Build 'proc_bind' clause with argument A ('master', 'close' or 'spread').
A | Argument of the clause ('master', 'close' or 'spread'). |
ALoc | Starting location of the argument. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Definition at line 527 of file OpenMPClause.h.
clang::OMPProcBindClause::OMPProcBindClause | ( | ) | [inline] |
Build an empty clause.
Definition at line 535 of file OpenMPClause.h.
StmtRange clang::OMPProcBindClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 555 of file OpenMPClause.h.
static bool clang::OMPProcBindClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 551 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
SourceLocation clang::OMPProcBindClause::getLParenLoc | ( | ) | const [inline] |
Returns the location of '('.
Definition at line 543 of file OpenMPClause.h.
OpenMPProcBindClauseKind clang::OMPProcBindClause::getProcBindKind | ( | ) | const [inline] |
Returns kind of the clause.
Definition at line 546 of file OpenMPClause.h.
SourceLocation clang::OMPProcBindClause::getProcBindKindKwLoc | ( | ) | const [inline] |
Returns location of clause kind.
Definition at line 549 of file OpenMPClause.h.
void clang::OMPProcBindClause::setLParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of '('.
Definition at line 541 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Definition at line 497 of file OpenMPClause.h.