clang 19.0.0git
Classes | Public Member Functions | Public Attributes | List of all members
clang::SemaOpenMP::DeclareTargetContextInfo Struct Reference

#include "clang/Sema/SemaOpenMP.h"

Classes

struct  MapInfo
 

Public Member Functions

 DeclareTargetContextInfo (OpenMPDirectiveKind Kind, SourceLocation Loc)
 

Public Attributes

llvm::DenseMap< NamedDecl *, MapInfoExplicitlyMapped
 Explicitly listed variables and functions in a 'to' or 'link' clause.
 
OMPDeclareTargetDeclAttr::DevTypeTy DT = OMPDeclareTargetDeclAttr::DT_Any
 The 'device_type' as parsed from the clause.
 
OpenMPDirectiveKind Kind
 The directive kind, begin declare target or declare target.
 
std::optional< Expr * > Indirect
 The directive with indirect clause.
 
SourceLocation Loc
 The directive location.
 

Detailed Description

Definition at line 299 of file SemaOpenMP.h.

Constructor & Destructor Documentation

◆ DeclareTargetContextInfo()

clang::SemaOpenMP::DeclareTargetContextInfo::DeclareTargetContextInfo ( OpenMPDirectiveKind  Kind,
SourceLocation  Loc 
)
inline

Definition at line 319 of file SemaOpenMP.h.

Member Data Documentation

◆ DT

OMPDeclareTargetDeclAttr::DevTypeTy clang::SemaOpenMP::DeclareTargetContextInfo::DT = OMPDeclareTargetDeclAttr::DT_Any

The 'device_type' as parsed from the clause.

Definition at line 308 of file SemaOpenMP.h.

Referenced by clang::SemaOpenMP::ActOnOpenMPDeclareTargetName(), and clang::SemaOpenMP::checkDeclIsAllowedInOpenMPTarget().

◆ ExplicitlyMapped

llvm::DenseMap<NamedDecl *, MapInfo> clang::SemaOpenMP::DeclareTargetContextInfo::ExplicitlyMapped

Explicitly listed variables and functions in a 'to' or 'link' clause.

Definition at line 305 of file SemaOpenMP.h.

Referenced by clang::SemaOpenMP::ActOnFinishedOpenMPDeclareTargetContext().

◆ Indirect

std::optional<Expr *> clang::SemaOpenMP::DeclareTargetContextInfo::Indirect

The directive with indirect clause.

Definition at line 314 of file SemaOpenMP.h.

Referenced by clang::SemaOpenMP::ActOnOpenMPDeclareTargetName(), and clang::SemaOpenMP::checkDeclIsAllowedInOpenMPTarget().

◆ Kind

OpenMPDirectiveKind clang::SemaOpenMP::DeclareTargetContextInfo::Kind

The directive kind, begin declare target or declare target.

Definition at line 311 of file SemaOpenMP.h.

Referenced by clang::SemaOpenMP::DiagnoseUnterminatedOpenMPDeclareTarget().

◆ Loc

SourceLocation clang::SemaOpenMP::DeclareTargetContextInfo::Loc

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