clang 22.0.0git
clang::OpenACCSelfClause Class Referencefinal

A 'self' clause, which has an optional condition expression, or, in the event of an 'update' directive, contains a 'VarList'. More...

#include "clang/AST/OpenACCClause.h"

Inheritance diagram for clang::OpenACCSelfClause:
[legend]

Public Member Functions

bool isConditionExprClause () const
bool isVarListClause () const
bool isEmptySelfClause () const
bool hasConditionExpr () const
const ExprgetConditionExpr () const
ExprgetConditionExpr ()
ArrayRef< Expr * > getVarList ()
ArrayRef< Expr * > getVarList () const
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 OpenACCSelfClauseCreate (const ASTContext &C, SourceLocation BeginLoc, SourceLocation LParenLoc, Expr *ConditionExpr, SourceLocation EndLoc)
static OpenACCSelfClauseCreate (const ASTContext &C, SourceLocation BeginLoc, SourceLocation LParenLoc, ArrayRef< Expr * > ConditionExpr, SourceLocation EndLoc)
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 *)

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>
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)

Detailed Description

A 'self' clause, which has an optional condition expression, or, in the event of an 'update' directive, contains a 'VarList'.

Definition at line 404 of file OpenACCClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OpenACCSelfClause::children ( )
inline

Definition at line 470 of file OpenACCClause.h.

Referenced by children().

◆ children() [2/2]

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

Definition at line 476 of file OpenACCClause.h.

References Children, and children().

◆ classof()

bool clang::OpenACCSelfClause::classof ( const OpenACCClause * C)
inlinestatic

Definition at line 426 of file OpenACCClause.h.

References clang::C, and clang::Self.

Referenced by clang::OpenACCClauseWithParams::classof().

◆ Create() [1/2]

OpenACCSelfClause * OpenACCSelfClause::Create ( const ASTContext & C,
SourceLocation BeginLoc,
SourceLocation LParenLoc,
ArrayRef< Expr * > ConditionExpr,
SourceLocation EndLoc )
static

Definition at line 100 of file OpenACCClause.cpp.

References clang::C.

◆ Create() [2/2]

OpenACCSelfClause * OpenACCSelfClause::Create ( const ASTContext & C,
SourceLocation BeginLoc,
SourceLocation LParenLoc,
Expr * ConditionExpr,
SourceLocation EndLoc )
static

Definition at line 90 of file OpenACCClause.cpp.

References clang::C.

Referenced by clang::ASTRecordReader::readOpenACCClause().

◆ getConditionExpr() [1/2]

Expr * clang::OpenACCSelfClause::getConditionExpr ( )
inline

Definition at line 451 of file OpenACCClause.h.

◆ getConditionExpr() [2/2]

const Expr * clang::OpenACCSelfClause::getConditionExpr ( ) const
inline

Definition at line 443 of file OpenACCClause.h.

◆ getVarList() [1/2]

ArrayRef< Expr * > clang::OpenACCSelfClause::getVarList ( )
inline

Definition at line 459 of file OpenACCClause.h.

Referenced by isEmptySelfClause().

◆ getVarList() [2/2]

ArrayRef< Expr * > clang::OpenACCSelfClause::getVarList ( ) const
inline

Definition at line 464 of file OpenACCClause.h.

◆ hasConditionExpr()

bool clang::OpenACCSelfClause::hasConditionExpr ( ) const
inline

Definition at line 437 of file OpenACCClause.h.

Referenced by isEmptySelfClause().

◆ isConditionExprClause()

bool clang::OpenACCSelfClause::isConditionExprClause ( ) const
inline

Definition at line 430 of file OpenACCClause.h.

Referenced by isEmptySelfClause(), and isVarListClause().

◆ isEmptySelfClause()

bool clang::OpenACCSelfClause::isEmptySelfClause ( ) const
inline

Definition at line 432 of file OpenACCClause.h.

References getVarList(), hasConditionExpr(), and isConditionExprClause().

◆ isVarListClause()

bool clang::OpenACCSelfClause::isVarListClause ( ) const
inline

Definition at line 431 of file OpenACCClause.h.

References isConditionExprClause().


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