clang 23.0.0git
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 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.

Friends

class OMPClauseReader

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

Constructor & Destructor Documentation

◆ OMPXAttributeClause() [1/2]

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

◆ OMPXAttributeClause() [2/2]

OMPXAttributeClause::OMPXAttributeClause ( )
inline

Build an empty clause.

Definition at line 10270 of file OpenMPClause.h.

Member Function Documentation

◆ getAttrs()

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

Returned the attributes parsed from this clause.

Definition at line 10279 of file OpenMPClause.h.

◆ getLParenLoc()

SourceLocation OMPXAttributeClause::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 10276 of file OpenMPClause.h.

◆ setLParenLoc()

void OMPXAttributeClause::setLParenLoc ( SourceLocation Loc)
inline

Sets the location of '('.

Definition at line 10273 of file OpenMPClause.h.

◆ OMPClauseReader

friend class OMPClauseReader
friend

Definition at line 10249 of file OpenMPClause.h.

References OMPClauseReader.

Referenced by OMPClauseReader.


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