clang 22.0.0git
clang::DarwinSDKInfo Class Reference

The information about the darwin SDK that was used during this compilation. More...

#include "clang/Basic/DarwinSDKInfo.h"

Classes

struct  OSEnvPair
 A value that describes two os-environment pairs that can be used as a key to the version map in the SDK. More...
class  RelatedTargetVersionMapping
 Represents a version mapping that maps from a version of one target to a version of a related target. More...

Public Member Functions

 DarwinSDKInfo (VersionTuple Version, VersionTuple MaximumDeploymentTarget, llvm::Triple::OSType OS, llvm::DenseMap< OSEnvPair::StorageType, std::optional< RelatedTargetVersionMapping > > VersionMappings=llvm::DenseMap< OSEnvPair::StorageType, std::optional< RelatedTargetVersionMapping > >())
const llvm::VersionTuple & getVersion () const
const llvm::Triple::OSType & getOS () const
const RelatedTargetVersionMappinggetVersionMapping (OSEnvPair Kind) const

Static Public Member Functions

static std::optional< DarwinSDKInfoparseDarwinSDKSettingsJSON (const llvm::json::Object *Obj)

Detailed Description

The information about the darwin SDK that was used during this compilation.

Definition at line 29 of file DarwinSDKInfo.h.

Constructor & Destructor Documentation

◆ DarwinSDKInfo()

clang::DarwinSDKInfo::DarwinSDKInfo ( VersionTuple Version,
VersionTuple MaximumDeploymentTarget,
llvm::Triple::OSType OS,
llvm::DenseMap< OSEnvPair::StorageType, std::optional< RelatedTargetVersionMapping > > VersionMappings = llvm::DenseMap<OSEnvPair::StorageType, std::optional<RelatedTargetVersionMapping>>() )
inline

Definition at line 144 of file DarwinSDKInfo.h.

Referenced by parseDarwinSDKSettingsJSON().

Member Function Documentation

◆ getOS()

const llvm::Triple::OSType & clang::DarwinSDKInfo::getOS ( ) const
inline

Definition at line 157 of file DarwinSDKInfo.h.

◆ getVersion()

const llvm::VersionTuple & clang::DarwinSDKInfo::getVersion ( ) const
inline

Definition at line 155 of file DarwinSDKInfo.h.

◆ getVersionMapping()

const RelatedTargetVersionMapping * clang::DarwinSDKInfo::getVersionMapping ( OSEnvPair Kind) const
inline

Definition at line 170 of file DarwinSDKInfo.h.

Referenced by handleAvailabilityAttr().

◆ parseDarwinSDKSettingsJSON()


The documentation for this class was generated from the following files: