clang API Documentation
This represents 'default' clause in the '#pragma omp ...' directive. More...
#include <OpenMPClause.h>
Public Member Functions | |
OMPDefaultClause (OpenMPDefaultClauseKind A, SourceLocation ALoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
Build 'default' clause with argument A ('none' or 'shared'). | |
OMPDefaultClause () | |
Build an empty clause. | |
void | setLParenLoc (SourceLocation Loc) |
Sets the location of '('. | |
SourceLocation | getLParenLoc () const |
Returns the location of '('. | |
OpenMPDefaultClauseKind | getDefaultKind () const |
Returns kind of the clause. | |
SourceLocation | getDefaultKindKwLoc () const |
Returns location of clause kind. | |
StmtRange | children () |
Static Public Member Functions | |
static bool | classof (const OMPClause *T) |
Friends | |
class | OMPClauseReader |
This represents 'default' clause in the '#pragma omp ...' directive.
#pragma omp parallel default(shared)
In this example directive '#pragma omp parallel' has simple 'default' clause with kind 'shared'.
Definition at line 426 of file OpenMPClause.h.
clang::OMPDefaultClause::OMPDefaultClause | ( | OpenMPDefaultClauseKind | A, |
SourceLocation | ALoc, | ||
SourceLocation | StartLoc, | ||
SourceLocation | LParenLoc, | ||
SourceLocation | EndLoc | ||
) | [inline] |
Build 'default' clause with argument A ('none' or 'shared').
A | Argument of the clause ('none' or 'shared'). |
ALoc | Starting location of the argument. |
StartLoc | Starting location of the clause. |
LParenLoc | Location of '('. |
EndLoc | Ending location of the clause. |
Definition at line 456 of file OpenMPClause.h.
clang::OMPDefaultClause::OMPDefaultClause | ( | ) | [inline] |
Build an empty clause.
Definition at line 464 of file OpenMPClause.h.
StmtRange clang::OMPDefaultClause::children | ( | ) | [inline] |
Reimplemented from clang::OMPClause.
Definition at line 484 of file OpenMPClause.h.
static bool clang::OMPDefaultClause::classof | ( | const OMPClause * | T | ) | [inline, static] |
Reimplemented from clang::OMPClause.
Definition at line 480 of file OpenMPClause.h.
References clang::OMPClause::getClauseKind().
OpenMPDefaultClauseKind clang::OMPDefaultClause::getDefaultKind | ( | ) | const [inline] |
Returns kind of the clause.
Definition at line 475 of file OpenMPClause.h.
SourceLocation clang::OMPDefaultClause::getDefaultKindKwLoc | ( | ) | const [inline] |
Returns location of clause kind.
Definition at line 478 of file OpenMPClause.h.
SourceLocation clang::OMPDefaultClause::getLParenLoc | ( | ) | const [inline] |
Returns the location of '('.
Definition at line 472 of file OpenMPClause.h.
void clang::OMPDefaultClause::setLParenLoc | ( | SourceLocation | Loc | ) | [inline] |
Sets the location of '('.
Definition at line 470 of file OpenMPClause.h.
friend class OMPClauseReader [friend] |
Definition at line 427 of file OpenMPClause.h.