clang 22.0.0git
clang::OMPFailClause Class Referencefinal

This represents 'fail' clause in the '#pragma omp atomic' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPFailClause:
[legend]

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.
Public Member Functions inherited from clang::OMPClause
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 Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)

Friends

class OMPClauseReader

Additional Inherited Members

Public Types inherited from clang::OMPClause
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>
Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)

Detailed Description

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 3041 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPFailClause() [1/3]

clang::OMPFailClause::OMPFailClause ( SourceLocation StartLoc,
SourceLocation EndLoc )
inline

Build 'fail' clause.

Parameters
StartLocStarting location of the clause.
EndLocEnding location of the clause.

Definition at line 3069 of file OpenMPClause.h.

References clang::OMPClause::OMPClause().

◆ OMPFailClause() [2/3]

clang::OMPFailClause::OMPFailClause ( OpenMPClauseKind FailParameter,
SourceLocation FailParameterLoc,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc )
inline

Definition at line 3072 of file OpenMPClause.h.

References clang::OMPClause::OMPClause().

◆ OMPFailClause() [3/3]

clang::OMPFailClause::OMPFailClause ( )
inline

Build an empty clause.

Definition at line 3082 of file OpenMPClause.h.

References clang::OMPClause::OMPClause().

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPFailClause::children ( )
inline

Definition at line 3085 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range clang::OMPFailClause::children ( ) const
inline

Definition at line 3089 of file OpenMPClause.h.

◆ classof()

bool clang::OMPFailClause::classof ( const OMPClause * T)
inlinestatic

Definition at line 3100 of file OpenMPClause.h.

References clang::OMPClause::OMPClause(), and clang::T.

◆ getFailParameter()

OpenMPClauseKind clang::OMPFailClause::getFailParameter ( ) const
inline

Gets the parameter (type memory-order-clause) in Fail clause.

Definition at line 3114 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 3111 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation clang::OMPFailClause::getLParenLoc ( ) const
inline

Gets the location of '(' (for the parameter) in fail clause.

Definition at line 3105 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPFailClause::used_children ( )
inline

Definition at line 3093 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPFailClause::used_children ( ) const
inline

Definition at line 3096 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 3049 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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