clang 17.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::OMPDynamicAllocatorsClause Class Referencefinal

This represents 'dynamic_allocators' clause in the '#pragma omp requires' directive. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPDynamicAllocatorsClause:
Inheritance graph
Collaboration diagram for clang::OMPDynamicAllocatorsClause:
Collaboration graph

Public Member Functions

 OMPDynamicAllocatorsClause (SourceLocation StartLoc, SourceLocation EndLoc)
 Build 'dynamic_allocators' clause.
 OMPDynamicAllocatorsClause ()
 Build an empty clause.
child_range children ()
const_child_range children () const
child_range used_children ()
const_child_range used_children () const
- 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 *)


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 'dynamic_allocators' clause in the '#pragma omp requires' directive.

#pragma omp requires dynamic_allocators

In this example directive '#pragma omp requires' has 'dynamic_allocators' clause.

Definition at line 1280 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPDynamicAllocatorsClause() [1/2]

clang::OMPDynamicAllocatorsClause::OMPDynamicAllocatorsClause ( SourceLocation  StartLoc,
SourceLocation  EndLoc 

Build 'dynamic_allocators' clause.

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

Definition at line 1287 of file OpenMPClause.h.

◆ OMPDynamicAllocatorsClause() [2/2]

clang::OMPDynamicAllocatorsClause::OMPDynamicAllocatorsClause ( )

Build an empty clause.

Definition at line 1291 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OMPDynamicAllocatorsClause::children ( )

Definition at line 1295 of file OpenMPClause.h.

◆ children() [2/2]

const_child_range clang::OMPDynamicAllocatorsClause::children ( ) const

Definition at line 1299 of file OpenMPClause.h.

◆ classof()

static bool clang::OMPDynamicAllocatorsClause::classof ( const OMPClause T)

Definition at line 1310 of file OpenMPClause.h.

References clang::OMPClause::getClauseKind().

◆ used_children() [1/2]

child_range clang::OMPDynamicAllocatorsClause::used_children ( )

Definition at line 1303 of file OpenMPClause.h.

◆ used_children() [2/2]

const_child_range clang::OMPDynamicAllocatorsClause::used_children ( ) const

Definition at line 1306 of file OpenMPClause.h.

Friends And Related Function Documentation

◆ OMPClauseReader

friend class OMPClauseReader

Definition at line 1282 of file OpenMPClause.h.

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