clang 19.0.0git
Public Member Functions | List of all members
clang::OMPClauseMappableExprCommon::MappableComponent Class Reference

Class that represents a component of a mappable expression. More...

#include "clang/AST/OpenMPClause.h"

Public Member Functions

 MappableComponent ()=default
 
 MappableComponent (Expr *AssociatedExpression, ValueDecl *AssociatedDeclaration, bool IsNonContiguous)
 
ExprgetAssociatedExpression () const
 
bool isNonContiguous () const
 
ValueDeclgetAssociatedDeclaration () const
 

Detailed Description

Class that represents a component of a mappable expression.

E.g. for an expression S.a, the first component is a declaration reference expression associated with 'S' and the second is a member expression associated with the field declaration 'a'. If the expression is an array subscript it may not have any associated declaration. In that case the associated declaration is set to nullptr.

Definition at line 5231 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ MappableComponent() [1/2]

clang::OMPClauseMappableExprCommon::MappableComponent::MappableComponent ( )
explicitdefault

◆ MappableComponent() [2/2]

clang::OMPClauseMappableExprCommon::MappableComponent::MappableComponent ( Expr AssociatedExpression,
ValueDecl AssociatedDeclaration,
bool  IsNonContiguous 
)
inlineexplicit

Definition at line 5243 of file OpenMPClause.h.

References clang::cast().

Member Function Documentation

◆ getAssociatedDeclaration()

ValueDecl * clang::OMPClauseMappableExprCommon::MappableComponent::getAssociatedDeclaration ( ) const
inline

Definition at line 5261 of file OpenMPClause.h.

Referenced by checkMappableExpressionList().

◆ getAssociatedExpression()

Expr * clang::OMPClauseMappableExprCommon::MappableComponent::getAssociatedExpression ( ) const
inline

Definition at line 5253 of file OpenMPClause.h.

◆ isNonContiguous()

bool clang::OMPClauseMappableExprCommon::MappableComponent::isNonContiguous ( ) const
inline

Definition at line 5257 of file OpenMPClause.h.


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