clang 23.0.0git
DarwinSDKInfo.cpp File Reference
#include "clang/Basic/DarwinSDKInfo.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include <optional>

Go to the source code of this file.

Functions

static std::optional< StringRef > parseXcodePlatform (const llvm::json::Object &Obj)
static std::pair< llvm::Triple::OSType, llvm::Triple::EnvironmentType > parseOSAndEnvironment (std::optional< StringRef > XcodePlatform)
static DarwinSDKInfo::PlatformInfoStorageType parsePlatformInfos (const llvm::json::Object &Obj, std::optional< StringRef > XcodePlatform, llvm::Triple::OSType SDKOS, llvm::Triple::EnvironmentType SDKEnvironment, VersionTuple Version)
static std::optional< VersionTuple > getVersionKey (const llvm::json::Object &Obj, StringRef Key)

Function Documentation

◆ getVersionKey()

std::optional< VersionTuple > getVersionKey ( const llvm::json::Object & Obj,
StringRef Key )
static

Definition at line 167 of file DarwinSDKInfo.cpp.

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

◆ parseOSAndEnvironment()

std::pair< llvm::Triple::OSType, llvm::Triple::EnvironmentType > parseOSAndEnvironment ( std::optional< StringRef > XcodePlatform)
static

Definition at line 78 of file DarwinSDKInfo.cpp.

References clang::Default.

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

◆ parsePlatformInfos()

DarwinSDKInfo::PlatformInfoStorageType parsePlatformInfos ( const llvm::json::Object & Obj,
std::optional< StringRef > XcodePlatform,
llvm::Triple::OSType SDKOS,
llvm::Triple::EnvironmentType SDKEnvironment,
VersionTuple Version )
static

Definition at line 103 of file DarwinSDKInfo.cpp.

References Arch.

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

◆ parseXcodePlatform()

std::optional< StringRef > parseXcodePlatform ( const llvm::json::Object & Obj)
static

Definition at line 67 of file DarwinSDKInfo.cpp.

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