clang 20.0.0git
Public Attributes | List of all members
clang::SemaCUDA::CUDATargetContext Struct Reference

Define the current global CUDA host/device context where a function may be called. More...

#include "clang/Sema/SemaCUDA.h"

Public Attributes

CUDAFunctionTarget Target = CUDAFunctionTarget::HostDevice
 
CUDATargetContextKind Kind = CTCK_Unknown
 
DeclD = nullptr
 

Detailed Description

Define the current global CUDA host/device context where a function may be called.

Only used when a function is called outside of any functions.

Definition at line 137 of file SemaCUDA.h.

Member Data Documentation

◆ D

Decl* clang::SemaCUDA::CUDATargetContext::D = nullptr

Definition at line 140 of file SemaCUDA.h.

◆ Kind

CUDATargetContextKind clang::SemaCUDA::CUDATargetContext::Kind = CTCK_Unknown

Definition at line 139 of file SemaCUDA.h.

Referenced by clang::SemaCUDA::IdentifyPreference().

◆ Target

CUDAFunctionTarget clang::SemaCUDA::CUDATargetContext::Target = CUDAFunctionTarget::HostDevice

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