clang 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
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:
Inheritance graph
[legend]

Public Member Functions

bool isConditionExprClause () 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
 
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 332 of file OpenACCClause.h.

Member Function Documentation

◆ children() [1/2]

child_range clang::OpenACCSelfClause::children ( )
inline

Definition at line 395 of file OpenACCClause.h.

Referenced by children().

◆ children() [2/2]

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

Definition at line 401 of file OpenACCClause.h.

References children().

◆ classof()

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

Definition at line 356 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 97 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 87 of file OpenACCClause.cpp.

References clang::C.

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

◆ getConditionExpr() [1/2]

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

Definition at line 376 of file OpenACCClause.h.

◆ getConditionExpr() [2/2]

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

Definition at line 368 of file OpenACCClause.h.

◆ getVarList() [1/2]

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

Definition at line 384 of file OpenACCClause.h.

◆ getVarList() [2/2]

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

Definition at line 389 of file OpenACCClause.h.

◆ hasConditionExpr()

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

Definition at line 362 of file OpenACCClause.h.

◆ isConditionExprClause()

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

Definition at line 360 of file OpenACCClause.h.


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