clang 20.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::OpenACCClauseWithSingleIntExpr Class Reference

Represents one of a handful of clauses that have a single integer expression. More...

#include "clang/AST/OpenACCClause.h"

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

Public Member Functions

bool hasIntExpr () const
 
const ExprgetIntExpr () const
 
ExprgetIntExpr ()
 
- 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 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

 OpenACCClauseWithSingleIntExpr (OpenACCClauseKind K, SourceLocation BeginLoc, SourceLocation LParenLoc, Expr *IntExpr, SourceLocation EndLoc)
 
- 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

Represents one of a handful of clauses that have a single integer expression.

Definition at line 486 of file OpenACCClause.h.

Constructor & Destructor Documentation

◆ OpenACCClauseWithSingleIntExpr()

clang::OpenACCClauseWithSingleIntExpr::OpenACCClauseWithSingleIntExpr ( OpenACCClauseKind  K,
SourceLocation  BeginLoc,
SourceLocation  LParenLoc,
Expr IntExpr,
SourceLocation  EndLoc 
)
inlineprotected

Definition at line 490 of file OpenACCClause.h.

References clang::OpenACCClauseWithExprs::setExprs().

Member Function Documentation

◆ classof()

bool OpenACCClauseWithSingleIntExpr::classof ( const OpenACCClause C)
static

◆ getIntExpr() [1/2]

Expr * clang::OpenACCClauseWithSingleIntExpr::getIntExpr ( )
inline

Definition at line 506 of file OpenACCClause.h.

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

◆ getIntExpr() [2/2]

const Expr * clang::OpenACCClauseWithSingleIntExpr::getIntExpr ( ) const
inline

Definition at line 502 of file OpenACCClause.h.

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

◆ hasIntExpr()

bool clang::OpenACCClauseWithSingleIntExpr::hasIntExpr ( ) const
inline

Definition at line 501 of file OpenACCClause.h.

References clang::OpenACCClauseWithExprs::getExprs().

Referenced by getIntExpr().


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