clang 22.0.0git
clang::OMPXAttributeClause Class Reference

This represents 'ompx_attribute' clause in a directive that might generate an outlined function. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPXAttributeClause:
[legend]

Public Member Functions

 OMPXAttributeClause (ArrayRef< const Attr * > Attrs, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 Build 'ompx_attribute' clause.
 OMPXAttributeClause ()
 Build an empty clause.
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('.
SourceLocation getLParenLoc () const
 Returns the location of '('.
ArrayRef< const Attr * > getAttrs () const
 Returned the attributes parsed from this clause.
Public Member Functions inherited from clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >
 OMPNoChildClause (SourceLocation StartLoc, SourceLocation EndLoc)
 Build 'ClauseKind' clause.
child_range children ()
child_range used_children ()
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

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>
Static Public Member Functions inherited from clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >
static bool classof (const OMPClause *T)
Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)

Detailed Description

This represents 'ompx_attribute' clause in a directive that might generate an outlined function.

An example is given below.

#pragma omp target [...] ompx_attribute(flatten)

Definition at line 9904 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPXAttributeClause() [1/2]

clang::OMPXAttributeClause::OMPXAttributeClause ( ArrayRef< const Attr * > Attrs,
SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc )
inline

Build 'ompx_attribute' clause.

Parameters
AttrsThe parsed attributes (clause arguments)
StartLocStarting location of the clause.
LParenLocLocation of '('.
EndLocEnding location of the clause.

Definition at line 9921 of file OpenMPClause.h.

References clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >::OMPNoChildClause().

◆ OMPXAttributeClause() [2/2]

clang::OMPXAttributeClause::OMPXAttributeClause ( )
inline

Build an empty clause.

Definition at line 9927 of file OpenMPClause.h.

References clang::OMPNoChildClause< llvm::omp::OMPC_ompx_attribute >::OMPNoChildClause().

Member Function Documentation

◆ getAttrs()

ArrayRef< const Attr * > clang::OMPXAttributeClause::getAttrs ( ) const
inline

Returned the attributes parsed from this clause.

Definition at line 9936 of file OpenMPClause.h.

◆ getLParenLoc()

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

Returns the location of '('.

Definition at line 9933 of file OpenMPClause.h.

◆ setLParenLoc()

void clang::OMPXAttributeClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 9930 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 9906 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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