clang: clang::OMPFailClause Class Reference (original) (raw)
This represents 'fail' clause in the '#pragma omp atomic' directive. More...
#include "[clang/AST/OpenMPClause.h](OpenMPClause%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
OMPFailClause (SourceLocation StartLoc, SourceLocation EndLoc) | |
Build 'fail' clause. | |
OMPFailClause (OpenMPClauseKind FailParameter, SourceLocation FailParameterLoc, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
OMPFailClause () | |
Build an empty clause. | |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
const_child_range | used_children () const |
SourceLocation | getLParenLoc () const |
Gets the location of '(' (for the parameter) in fail clause. | |
SourceLocation | getFailParameterLoc () const |
Gets the location of Fail Parameter (type memory-order-clause) in fail clause. | |
OpenMPClauseKind | getFailParameter () const |
Gets the parameter (type memory-order-clause) in Fail clause. | |
![]() |
|
SourceLocation | getBeginLoc () const |
Returns the starting location of the clause. | |
SourceLocation | getEndLoc () const |
Returns the ending location of the clause. | |
void | setLocStart (SourceLocation Loc) |
Sets the starting location of the clause. | |
void | setLocEnd (SourceLocation Loc) |
Sets the ending location of the clause. | |
OpenMPClauseKind | getClauseKind () const |
Returns kind of OpenMP clause (private, shared, reduction, etc.). | |
bool | isImplicit () const |
child_range | children () |
const_child_range | children () const |
child_range | used_children () |
Get the iterator range for the expressions used in the clauses. | |
const_child_range | used_children () const |
Static Public Member Functions | |
---|---|
static bool | classof (const OMPClause *T) |
![]() |
|
static bool | classof (const OMPClause *) |
Additional Inherited Members | |
---|---|
![]() |
|
using | child_iterator = StmtIterator |
using | const_child_iterator = ConstStmtIterator |
using | child_range = llvm::iterator_range< child_iterator > |
using | const_child_range = llvm::iterator_range< const_child_iterator > |
![]() |
|
OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
This represents 'fail' clause in the '#pragma omp atomic' directive.
#pragma omp atomic compare fail
In this example directive '#pragma omp atomic compare' has 'fail' clause.
Definition at line 2995 of file OpenMPClause.h.
Build 'fail' clause.
Parameters
StartLoc | Starting location of the clause. |
---|---|
EndLoc | Ending location of the clause. |
Definition at line 3023 of file OpenMPClause.h.
◆ OMPFailClause() [2/3]
◆ OMPFailClause() [3/3]
clang::OMPFailClause::OMPFailClause ( ) | inline |
---|
◆ children() [1/2]
◆ children() [2/2]
◆ classof()
static bool clang::OMPFailClause::classof ( const OMPClause * T) | inlinestatic |
---|
◆ getFailParameter()
Gets the parameter (type memory-order-clause) in Fail clause.
Definition at line 3068 of file OpenMPClause.h.
◆ getFailParameterLoc()
SourceLocation clang::OMPFailClause::getFailParameterLoc ( ) const | inline |
---|
Gets the location of Fail Parameter (type memory-order-clause) in fail clause.
Definition at line 3065 of file OpenMPClause.h.
◆ getLParenLoc()
Gets the location of '(' (for the parameter) in fail clause.
Definition at line 3059 of file OpenMPClause.h.
◆ used_children() [1/2]
child_range clang::OMPFailClause::used_children ( ) | inline |
---|
◆ used_children() [2/2]
◆ OMPClauseReader
The documentation for this class was generated from the following file:
- include/clang/AST/OpenMPClause.h