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
 
bool isReadOnly () const
 
bool isZero () 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, bool IsReadOnly, bool IsZero)
 
void setVarListDetails (llvm::SmallVector< Expr * > &&VarList, bool IsReadOnly, bool IsZero)
 

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 62 of file SemaOpenACC.h.

Member Function Documentation

◆ getBeginLoc()

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

Definition at line 70 of file SemaOpenACC.h.

References clang::SourceRange::getBegin().

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

◆ getClauseKind()

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

Definition at line 68 of file SemaOpenACC.h.

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

◆ getConditionExpr() [1/2]

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

Definition at line 86 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 82 of file SemaOpenACC.h.

References getConditionExpr().

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

◆ getDefaultClauseKind()

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

Definition at line 76 of file SemaOpenACC.h.

References clang::Default.

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

◆ getDirectiveKind()

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

Definition at line 66 of file SemaOpenACC.h.

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

◆ getEndLoc()

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

Definition at line 74 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 117 of file SemaOpenACC.h.

References getIntExprs().

◆ getLParenLoc()

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

Definition at line 72 of file SemaOpenACC.h.

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

◆ getNumIntExprs()

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

Definition at line 101 of file SemaOpenACC.h.

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

◆ getVarList() [1/2]

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

◆ getVarList() [2/2]

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

Definition at line 142 of file SemaOpenACC.h.

References getVarList().

◆ isReadOnly()

bool clang::SemaOpenACC::OpenACCParsedClause::isReadOnly ( ) const
inline

Definition at line 146 of file SemaOpenACC.h.

References clang::CopyIn, clang::PCopyIn, and clang::PresentOrCopyIn.

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

◆ isZero()

bool clang::SemaOpenACC::OpenACCParsedClause::isZero ( ) const
inline

◆ setConditionDetails()

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

◆ setDefaultDetails()

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

Definition at line 168 of file SemaOpenACC.h.

References clang::Default.

◆ setEndLoc()

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

Definition at line 166 of file SemaOpenACC.h.

References clang::SourceRange::setEnd().

◆ setIntExprDetails() [1/2]

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

Definition at line 188 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 195 of file SemaOpenACC.h.

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

◆ setLParenLoc()

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

Definition at line 165 of file SemaOpenACC.h.

◆ setVarListDetails() [1/2]

void clang::SemaOpenACC::OpenACCParsedClause::setVarListDetails ( ArrayRef< Expr * >  VarList,
bool  IsReadOnly,
bool  IsZero 
)
inline

◆ setVarListDetails() [2/2]

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

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