clang 22.0.0git
Distro.cpp File Reference
#include "clang/Driver/Distro.h"
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Threading.h"
#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/Triple.h"

Go to the source code of this file.

Functions

static Distro::DistroType DetectOsRelease (llvm::vfs::FileSystem &VFS)
static Distro::DistroType DetectLsbRelease (llvm::vfs::FileSystem &VFS)
static Distro::DistroType DetectDistro (llvm::vfs::FileSystem &VFS)
static Distro::DistroType GetDistro (llvm::vfs::FileSystem &VFS, const llvm::Triple &TargetOrHost)

Function Documentation

◆ DetectDistro()

◆ DetectLsbRelease()

Distro::DistroType DetectLsbRelease ( llvm::vfs::FileSystem & VFS)
static

◆ DetectOsRelease()

◆ GetDistro()

Distro::DistroType GetDistro ( llvm::vfs::FileSystem & VFS,
const llvm::Triple & TargetOrHost )
static

Definition at line 218 of file Distro.cpp.

References DetectDistro(), and clang::driver::Distro::UnknownDistro.

Referenced by clang::driver::Distro::Distro().