clang  14.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. More...
 
static constexpr OSEnvPair macCatalystToMacOSPair ()
 Returns the os-environment mapping pair that's used to represent the Mac Catalyst -> macOS version mapping. More...
 

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 32 of file DarwinSDKInfo.h.

Member Typedef Documentation

◆ StorageType

Definition at line 34 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 36 of file DarwinSDKInfo.h.

Referenced by macCatalystToMacOSPair(), and macOStoMacCatalystPair().

Member Function Documentation

◆ 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 55 of file DarwinSDKInfo.h.

References OSEnvPair().

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 48 of file DarwinSDKInfo.h.

References OSEnvPair().

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

Friends And Related Function Documentation

◆ DarwinSDKInfo

friend class DarwinSDKInfo
friend

Definition at line 63 of file DarwinSDKInfo.h.


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