clang 20.0.0git
Static Public Member Functions | List of all members
clang::OMPAbsentClause Class Referencefinal

This represents the 'absent' clause in the '#pragma omp assume' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPAbsentClause:
Inheritance graph
[legend]

Static Public Member Functions

static OMPAbsentClauseCreate (const ASTContext &C, ArrayRef< OpenMPDirectiveKind > DKVec, SourceLocation Loc, SourceLocation LLoc, SourceLocation RLoc)
 
static OMPAbsentClauseCreateEmpty (const ASTContext &C, unsigned NumKinds)
 
static bool classof (const OMPClause *C)
 
- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 

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 >
 
- Public Member Functions inherited from clang::OMPDirectiveListClause< OMPAbsentClause >
 OMPDirectiveListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned NumKinds)
 Build a clause with NumKinds directive kinds.
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 
const_child_range used_children () const
 
MutableArrayRef< OpenMPDirectiveKindgetDirectiveKinds ()
 
void setDirectiveKinds (ArrayRef< OpenMPDirectiveKind > DK)
 
SourceLocation getLParenLoc ()
 
void setLParenLoc (SourceLocation S)
 
- 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
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 
- Protected Attributes inherited from clang::OMPDirectiveListClause< OMPAbsentClause >
unsigned NumKinds
 Number of directive kinds listed in the clause.
 

Detailed Description

This represents the 'absent' clause in the '#pragma omp assume' directive.

#pragma omp assume absent(<directive-name list>)

In this example directive '#pragma omp assume' has an 'absent' clause.

Definition at line 2207 of file OpenMPClause.h.

Member Function Documentation

◆ classof()

static bool clang::OMPAbsentClause::classof ( const OMPClause C)
inlinestatic

Definition at line 2238 of file OpenMPClause.h.

References clang::C.

◆ Create()

OMPAbsentClause * OMPAbsentClause::Create ( const ASTContext C,
ArrayRef< OpenMPDirectiveKind DKVec,
SourceLocation  Loc,
SourceLocation  LLoc,
SourceLocation  RLoc 
)
static

Definition at line 1742 of file OpenMPClause.cpp.

References clang::C, and Loc.

Referenced by clang::SemaOpenMP::ActOnOpenMPDirectivePresenceClause().

◆ CreateEmpty()

OMPAbsentClause * OMPAbsentClause::CreateEmpty ( const ASTContext C,
unsigned  NumKinds 
)
static

Definition at line 1754 of file OpenMPClause.cpp.

References clang::C.

Referenced by clang::OMPClauseReader::readClause().


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