clang 20.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::OpenACCGangClause Class Referencefinal

#include "clang/AST/OpenACCClause.h"

Inheritance diagram for clang::OpenACCGangClause:
Inheritance graph
[legend]

Public Member Functions

size_t numTrailingObjects (OverloadToken< Expr * >) const
 
unsigned getNumExprs () const
 
std::pair< OpenACCGangKind, const Expr * > getExpr (unsigned I) const
 
bool hasExprOfKind (OpenACCGangKind GK) const
 
- Public Member Functions inherited from clang::OpenACCClauseWithExprs
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 OpenACCGangClauseCreate (const ASTContext &Ctx, SourceLocation BeginLoc, SourceLocation LParenLoc, ArrayRef< OpenACCGangKind > GangKinds, ArrayRef< Expr * > IntExprs, SourceLocation EndLoc)
 
- Static Public Member Functions inherited from clang::OpenACCClauseWithExprs
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

 OpenACCGangClause (SourceLocation BeginLoc, SourceLocation LParenLoc, ArrayRef< OpenACCGangKind > GangKinds, ArrayRef< Expr * > IntExprs, SourceLocation EndLoc)
 
OpenACCGangKind getGangKind (unsigned I) const
 
- Protected Member Functions inherited from clang::OpenACCClauseWithExprs
 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.
 
llvm::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

Definition at line 508 of file OpenACCClause.h.

Constructor & Destructor Documentation

◆ OpenACCGangClause()

OpenACCGangClause::OpenACCGangClause ( SourceLocation  BeginLoc,
SourceLocation  LParenLoc,
ArrayRef< OpenACCGangKind GangKinds,
ArrayRef< Expr * >  IntExprs,
SourceLocation  EndLoc 
)
protected

Definition at line 132 of file OpenACCClause.cpp.

References clang::OpenACCClauseWithExprs::setExprs().

Member Function Documentation

◆ classof()

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

Definition at line 522 of file OpenACCClause.h.

References clang::C, and clang::Gang.

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

◆ Create()

OpenACCGangClause * OpenACCGangClause::Create ( const ASTContext Ctx,
SourceLocation  BeginLoc,
SourceLocation  LParenLoc,
ArrayRef< OpenACCGangKind GangKinds,
ArrayRef< Expr * >  IntExprs,
SourceLocation  EndLoc 
)
static

◆ getExpr()

std::pair< OpenACCGangKind, const Expr * > clang::OpenACCGangClause::getExpr ( unsigned  I) const
inline

Definition at line 531 of file OpenACCClause.h.

References clang::OpenACCClauseWithExprs::getExprs(), and getGangKind().

◆ getGangKind()

OpenACCGangKind clang::OpenACCGangClause::getGangKind ( unsigned  I) const
inlineprotected

Definition at line 517 of file OpenACCClause.h.

Referenced by getExpr(), and hasExprOfKind().

◆ getNumExprs()

unsigned clang::OpenACCGangClause::getNumExprs ( ) const
inline

Definition at line 530 of file OpenACCClause.h.

References clang::OpenACCClauseWithExprs::getExprs().

Referenced by hasExprOfKind(), and numTrailingObjects().

◆ hasExprOfKind()

bool clang::OpenACCGangClause::hasExprOfKind ( OpenACCGangKind  GK) const
inline

Definition at line 535 of file OpenACCClause.h.

References getGangKind(), and getNumExprs().

◆ numTrailingObjects()

size_t clang::OpenACCGangClause::numTrailingObjects ( OverloadToken< Expr * >  ) const
inline

Definition at line 526 of file OpenACCClause.h.

References getNumExprs().


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