clang 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::DarwinSDKInfo::OSEnvPair Struct Reference

A value that describes two os-environment pairs that can be used as a key to the version map in the SDK. More...

#include "clang/Basic/DarwinSDKInfo.h"

Public Types

using StorageType = uint64_t
 

Public Member Functions

constexpr OSEnvPair (llvm::Triple::OSType FromOS, llvm::Triple::EnvironmentType FromEnv, llvm::Triple::OSType ToOS, llvm::Triple::EnvironmentType ToEnv)
 

Static Public Member Functions

static constexpr OSEnvPair macOStoMacCatalystPair ()
 Returns the os-environment mapping pair that's used to represent the macOS -> Mac Catalyst version mapping.
 
static constexpr OSEnvPair macCatalystToMacOSPair ()
 Returns the os-environment mapping pair that's used to represent the Mac Catalyst -> macOS version mapping.
 
static constexpr OSEnvPair iOStoWatchOSPair ()
 Returns the os-environment mapping pair that's used to represent the iOS -> watchOS version mapping.
 
static constexpr OSEnvPair iOStoTvOSPair ()
 Returns the os-environment mapping pair that's used to represent the iOS -> tvOS version mapping.
 

Friends

class DarwinSDKInfo
 

Detailed Description

A value that describes two os-environment pairs that can be used as a key to the version map in the SDK.

Definition at line 33 of file DarwinSDKInfo.h.

Member Typedef Documentation

◆ StorageType

Definition at line 35 of file DarwinSDKInfo.h.

Constructor & Destructor Documentation

◆ OSEnvPair()

constexpr clang::DarwinSDKInfo::OSEnvPair::OSEnvPair ( llvm::Triple::OSType  FromOS,
llvm::Triple::EnvironmentType  FromEnv,
llvm::Triple::OSType  ToOS,
llvm::Triple::EnvironmentType  ToEnv 
)
inlineconstexpr

Definition at line 37 of file DarwinSDKInfo.h.

Member Function Documentation

◆ iOStoTvOSPair()

static constexpr OSEnvPair clang::DarwinSDKInfo::OSEnvPair::iOStoTvOSPair ( )
inlinestaticconstexpr

Returns the os-environment mapping pair that's used to represent the iOS -> tvOS version mapping.

Definition at line 70 of file DarwinSDKInfo.h.

Referenced by handleAvailabilityAttr().

◆ iOStoWatchOSPair()

static constexpr OSEnvPair clang::DarwinSDKInfo::OSEnvPair::iOStoWatchOSPair ( )
inlinestaticconstexpr

Returns the os-environment mapping pair that's used to represent the iOS -> watchOS version mapping.

Definition at line 63 of file DarwinSDKInfo.h.

Referenced by handleAvailabilityAttr().

◆ macCatalystToMacOSPair()

static constexpr OSEnvPair clang::DarwinSDKInfo::OSEnvPair::macCatalystToMacOSPair ( )
inlinestaticconstexpr

Returns the os-environment mapping pair that's used to represent the Mac Catalyst -> macOS version mapping.

Definition at line 56 of file DarwinSDKInfo.h.

Referenced by clang::DarwinSDKInfo::parseDarwinSDKSettingsJSON().

◆ macOStoMacCatalystPair()

static constexpr OSEnvPair clang::DarwinSDKInfo::OSEnvPair::macOStoMacCatalystPair ( )
inlinestaticconstexpr

Returns the os-environment mapping pair that's used to represent the macOS -> Mac Catalyst version mapping.

Definition at line 49 of file DarwinSDKInfo.h.

Referenced by clang::driver::toolchains::Darwin::addClangCC1ASTargetOptions(), clang::driver::toolchains::Darwin::addPlatformVersionArgs(), handleAvailabilityAttr(), and clang::DarwinSDKInfo::parseDarwinSDKSettingsJSON().

Friends And Related Function Documentation

◆ DarwinSDKInfo

friend class DarwinSDKInfo
friend

Definition at line 78 of file DarwinSDKInfo.h.


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