clang 19.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
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:
Inheritance graph
[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 2563 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 2591 of file OpenMPClause.h.

◆ OMPFailClause() [2/3]

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

Definition at line 2594 of file OpenMPClause.h.

◆ OMPFailClause() [3/3]

clang::OMPFailClause::OMPFailClause ( )
inline

Build an empty clause.

Definition at line 2604 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPFailClause::children ( )
inline

Definition at line 2607 of file OpenMPClause.h.

◆ children() [2/2]

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

Definition at line 2611 of file OpenMPClause.h.

◆ classof()

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

Definition at line 2622 of file OpenMPClause.h.

References clang::T.

◆ getFailParameter()

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

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

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

◆ getLParenLoc()

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

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

Definition at line 2627 of file OpenMPClause.h.

◆ used_children() [1/2]

child_range clang::OMPFailClause::used_children ( )
inline

Definition at line 2615 of file OpenMPClause.h.

◆ used_children() [2/2]

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

Definition at line 2618 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 2571 of file OpenMPClause.h.


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