clang 22.0.0git
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()

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

Member Function Documentation

◆ iOStoTvOSPair()

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.

References OSEnvPair().

Referenced by handleAvailabilityAttr().

◆ iOStoWatchOSPair()

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.

References OSEnvPair().

Referenced by handleAvailabilityAttr().

◆ macCatalystToMacOSPair()

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.

References OSEnvPair().

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

◆ macOStoMacCatalystPair()

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.

References OSEnvPair().

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

◆ DarwinSDKInfo

friend class DarwinSDKInfo
friend

Definition at line 78 of file DarwinSDKInfo.h.

References DarwinSDKInfo.

Referenced by DarwinSDKInfo.


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