clang 22.0.0git
clang::OpenACCClauseWithExprs Class Reference

Represents a clause that has one or more expressions associated with it. More...

#include "clang/AST/OpenACCClause.h"

Inheritance diagram for clang::OpenACCClauseWithExprs:
[legend]

Public Member Functions

child_range children ()
const_child_range children () const
Public Member Functions inherited from clang::OpenACCClauseWithParams
SourceLocation getLParenLoc () const
child_range children ()
const_child_range children () const
Public Member Functions inherited from clang::OpenACCClause
OpenACCClauseKind getClauseKind () const
SourceLocation getBeginLoc () const
SourceLocation getEndLoc () const
SourceRange getSourceRange () const
child_range children ()
const_child_range children () const
virtual ~OpenACCClause ()=default

Static Public Member Functions

static bool classof (const OpenACCClause *C)
Static Public Member Functions inherited from clang::OpenACCClauseWithParams
static bool classof (const OpenACCClause *C)
Static Public Member Functions inherited from clang::OpenACCClause
static bool classof (const OpenACCClause *)

Protected Member Functions

 OpenACCClauseWithExprs (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
void setExprs (MutableArrayRef< Expr * > NewExprs)
 Used only for initialization, the leaf class can initialize this to trailing storage.
void setExprs (MutableArrayRef< Expr * > NewStorage, ArrayRef< Expr * > Exprs)
 Used only for initialization, the leaf class can initialize this to trailing storage, and initialize the data in the trailing storage as well.
ArrayRef< Expr * > getExprs () const
 Gets the entire list of expressions, but leave it to the individual clauses to expose this how they'd like.
Protected Member Functions inherited from clang::OpenACCClauseWithParams
 OpenACCClauseWithParams (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
Protected Member Functions inherited from clang::OpenACCClause
 OpenACCClause (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation EndLoc)

Additional Inherited Members

Public Types inherited from clang::OpenACCClause
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>

Detailed Description

Represents a clause that has one or more expressions associated with it.

Definition at line 491 of file OpenACCClause.h.

Constructor & Destructor Documentation

◆ OpenACCClauseWithExprs()

Member Function Documentation

◆ children() [1/2]

child_range clang::OpenACCClauseWithExprs::children ( )
inline

Definition at line 520 of file OpenACCClause.h.

Referenced by children().

◆ children() [2/2]

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

Definition at line 525 of file OpenACCClause.h.

References Children, children(), and OpenACCClauseWithExprs().

◆ classof()

◆ getExprs()

◆ setExprs() [1/2]

void clang::OpenACCClauseWithExprs::setExprs ( MutableArrayRef< Expr * > NewExprs)
inlineprotected

Used only for initialization, the leaf class can initialize this to trailing storage.

Definition at line 501 of file OpenACCClause.h.

Referenced by clang::OpenACCClauseWithSingleIntExpr::OpenACCClauseWithSingleIntExpr(), clang::OpenACCGangClause::OpenACCGangClause(), and setExprs().

◆ setExprs() [2/2]

void clang::OpenACCClauseWithExprs::setExprs ( MutableArrayRef< Expr * > NewStorage,
ArrayRef< Expr * > Exprs )
inlineprotected

Used only for initialization, the leaf class can initialize this to trailing storage, and initialize the data in the trailing storage as well.

Definition at line 508 of file OpenACCClause.h.

References setExprs().


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