clang 19.0.0git
Classes | Public Member Functions | List of all members
clang::SemaOpenACC::OpenACCParsedClause Class Reference

A type to represent all the data for an OpenACC Clause that has been parsed, but not yet created/semantically analyzed. More...

#include "clang/Sema/SemaOpenACC.h"

Public Member Functions

 OpenACCParsedClause (OpenACCDirectiveKind DirKind, OpenACCClauseKind ClauseKind, SourceLocation BeginLoc)
 
OpenACCDirectiveKind getDirectiveKind () const
 
OpenACCClauseKind getClauseKind () const
 
SourceLocation getBeginLoc () const
 
SourceLocation getLParenLoc () const
 
SourceLocation getEndLoc () const
 
OpenACCDefaultClauseKind getDefaultClauseKind () const
 
const ExprgetConditionExpr () const
 
ExprgetConditionExpr ()
 
unsigned getNumIntExprs () const
 
ArrayRef< Expr * > getIntExprs ()
 
ArrayRef< Expr * > getIntExprs () const
 
ArrayRef< Expr * > getVarList ()
 
ArrayRef< Expr * > getVarList () const
 
void setLParenLoc (SourceLocation EndLoc)
 
void setEndLoc (SourceLocation EndLoc)
 
void setDefaultDetails (OpenACCDefaultClauseKind DefKind)
 
void setConditionDetails (Expr *ConditionExpr)
 
void setIntExprDetails (ArrayRef< Expr * > IntExprs)
 
void setIntExprDetails (llvm::SmallVector< Expr * > &&IntExprs)
 
void setVarListDetails (ArrayRef< Expr * > VarList)
 
void setVarListDetails (llvm::SmallVector< Expr * > &&VarList)
 

Detailed Description

A type to represent all the data for an OpenACC Clause that has been parsed, but not yet created/semantically analyzed.

This is effectively a discriminated union on the 'Clause Kind', with all of the individual clause details stored in a std::variant.

Definition at line 33 of file SemaOpenACC.h.

Constructor & Destructor Documentation

◆ OpenACCParsedClause()

clang::SemaOpenACC::OpenACCParsedClause::OpenACCParsedClause ( OpenACCDirectiveKind  DirKind,
OpenACCClauseKind  ClauseKind,
SourceLocation  BeginLoc 
)
inline

Definition at line 60 of file SemaOpenACC.h.

Member Function Documentation

◆ getBeginLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getBeginLoc ( ) const
inline

Definition at line 68 of file SemaOpenACC.h.

References clang::SourceRange::getBegin().

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getClauseKind()

OpenACCClauseKind clang::SemaOpenACC::OpenACCParsedClause::getClauseKind ( ) const
inline

Definition at line 66 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getConditionExpr() [1/2]

Expr * clang::SemaOpenACC::OpenACCParsedClause::getConditionExpr ( )
inline

Definition at line 84 of file SemaOpenACC.h.

References clang::If, clang::Self, and clang::Update.

◆ getConditionExpr() [2/2]

const Expr * clang::SemaOpenACC::OpenACCParsedClause::getConditionExpr ( ) const
inline

Definition at line 80 of file SemaOpenACC.h.

References getConditionExpr().

Referenced by clang::SemaOpenACC::ActOnClause(), and getConditionExpr().

◆ getDefaultClauseKind()

OpenACCDefaultClauseKind clang::SemaOpenACC::OpenACCParsedClause::getDefaultClauseKind ( ) const
inline

Definition at line 74 of file SemaOpenACC.h.

References clang::Default.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getDirectiveKind()

OpenACCDirectiveKind clang::SemaOpenACC::OpenACCParsedClause::getDirectiveKind ( ) const
inline

Definition at line 64 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getEndLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getEndLoc ( ) const
inline

Definition at line 72 of file SemaOpenACC.h.

References clang::SourceRange::getEnd().

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getIntExprs() [1/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getIntExprs ( )
inline

◆ getIntExprs() [2/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getIntExprs ( ) const
inline

Definition at line 115 of file SemaOpenACC.h.

References getIntExprs().

◆ getLParenLoc()

SourceLocation clang::SemaOpenACC::OpenACCParsedClause::getLParenLoc ( ) const
inline

Definition at line 70 of file SemaOpenACC.h.

Referenced by clang::SemaOpenACC::ActOnClause().

◆ getNumIntExprs()

unsigned clang::SemaOpenACC::OpenACCParsedClause::getNumIntExprs ( ) const
inline

Definition at line 99 of file SemaOpenACC.h.

References clang::NumGangs, clang::NumWorkers, and clang::VectorLength.

◆ getVarList() [1/2]

ArrayRef< Expr * > clang::SemaOpenACC::OpenACCParsedClause::getVarList ( )
inline

Definition at line 119 of file SemaOpenACC.h.

References clang::Private.

Referenced by clang::SemaOpenACC::ActOnClause(), and getVarList().

◆ getVarList() [2/2]

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

Definition at line 125 of file SemaOpenACC.h.

References getVarList().

◆ setConditionDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setConditionDetails ( Expr ConditionExpr)
inline

◆ setDefaultDetails()

void clang::SemaOpenACC::OpenACCParsedClause::setDefaultDetails ( OpenACCDefaultClauseKind  DefKind)
inline

Definition at line 132 of file SemaOpenACC.h.

References clang::Default.

◆ setEndLoc()

void clang::SemaOpenACC::OpenACCParsedClause::setEndLoc ( SourceLocation  EndLoc)
inline

Definition at line 130 of file SemaOpenACC.h.

References clang::SourceRange::setEnd().

◆ setIntExprDetails() [1/2]

void clang::SemaOpenACC::OpenACCParsedClause::setIntExprDetails ( ArrayRef< Expr * >  IntExprs)
inline

Definition at line 152 of file SemaOpenACC.h.

References clang::NumGangs, clang::NumWorkers, and clang::VectorLength.

◆ setIntExprDetails() [2/2]

void clang::SemaOpenACC::OpenACCParsedClause::setIntExprDetails ( llvm::SmallVector< Expr * > &&  IntExprs)
inline

Definition at line 159 of file SemaOpenACC.h.

References clang::NumGangs, clang::NumWorkers, and clang::VectorLength.

◆ setLParenLoc()

void clang::SemaOpenACC::OpenACCParsedClause::setLParenLoc ( SourceLocation  EndLoc)
inline

Definition at line 129 of file SemaOpenACC.h.

◆ setVarListDetails() [1/2]

void clang::SemaOpenACC::OpenACCParsedClause::setVarListDetails ( ArrayRef< Expr * >  VarList)
inline

Definition at line 167 of file SemaOpenACC.h.

References clang::Private.

◆ setVarListDetails() [2/2]

void clang::SemaOpenACC::OpenACCParsedClause::setVarListDetails ( llvm::SmallVector< Expr * > &&  VarList)
inline

Definition at line 173 of file SemaOpenACC.h.

References clang::Private.


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