clang  7.0.0svn
Public Member Functions | List of all members
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)
Expr * getAssociatedExpression () const
ValueDecl * getAssociatedDeclaration () 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 3297 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ MappableComponent() [1/2]

OMPClauseMappableExprCommon::MappableComponent::MappableComponent ( )

◆ MappableComponent() [2/2]

OMPClauseMappableExprCommon::MappableComponent::MappableComponent ( Expr *  AssociatedExpression,
ValueDecl *  AssociatedDeclaration 

Definition at line 3308 of file OpenMPClause.h.

Member Function Documentation

◆ getAssociatedDeclaration()

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

Definition at line 3318 of file OpenMPClause.h.

◆ getAssociatedExpression()

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

Definition at line 3316 of file OpenMPClause.h.

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