|
clang 24.0.0git
|
Distro - Helper class for detecting and classifying Linux distributions. More...
#include "clang/Driver/Distro.h"
Public Types | |
| enum | DistroType { UninitializedDistro , AlpineLinux , ArchLinux , DebianJessie , DebianStretch , DebianBuster , DebianBullseye , DebianBookworm , DebianTrixie , DebianForky , DebianDuke , Exherbo , RHEL7 , RHEL8 , RHEL9 , RHEL10 , Fedora , Gentoo , OpenSUSE , UbuntuQuantal , UbuntuRaring , UbuntuSaucy , UbuntuTrusty , UbuntuUtopic , UbuntuVivid , UbuntuWily , UbuntuXenial , UbuntuYakkety , UbuntuZesty , UbuntuArtful , UbuntuBionic , UbuntuCosmic , UbuntuDisco , UbuntuEoan , UbuntuFocal , UbuntuGroovy , UbuntuHirsute , UbuntuImpish , UbuntuJammy , UbuntuKinetic , UbuntuLunar , UbuntuMantic , UbuntuNoble , UbuntuOracular , UbuntuPlucky , UbuntuQuesting , UbuntuResolute , UbuntuStonking , UbuntuTenacious , UnknownDistro } |
Public Member Functions | |
Constructors | |
| Distro () | |
| Default constructor leaves the distribution unknown. | |
| Distro (DistroType D) | |
| Constructs a Distro type for specific distribution. | |
| Distro (llvm::vfs::FileSystem &VFS, const llvm::Triple &TargetOrHost) | |
| Detects the distribution using specified VFS. | |
| bool | operator== (const Distro &Other) const |
| bool | operator!= (const Distro &Other) const |
| bool | operator>= (const Distro &Other) const |
| bool | operator<= (const Distro &Other) const |
Convenience Predicates | |
| bool | IsRedhat () const |
| bool | IsOpenSUSE () const |
| bool | IsDebian () const |
| bool | IsUbuntu () const |
| bool | IsAlpineLinux () const |
| bool | IsGentoo () const |
Distro - Helper class for detecting and classifying Linux distributions.
This class encapsulates the clang Linux distribution detection mechanism as well as helper functions that match the specific (versioned) results into wider distribution classes.
|
inline |
Default constructor leaves the distribution unknown.
Definition at line 91 of file Distro.h.
Referenced by operator!=(), operator<=(), operator==(), and operator>=().
|
inline |
|
explicit |
Detects the distribution using specified VFS.
Definition at line 237 of file Distro.cpp.
References GetDistro().
|
inline |
Definition at line 133 of file Distro.h.
References AlpineLinux.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 125 of file Distro.h.
References DebianDuke, and DebianJessie.
Referenced by clang::driver::CudaInstallationDetector::CudaInstallationDetector().
|
inline |
Definition at line 135 of file Distro.h.
References Gentoo.
Referenced by clang::driver::tools::Clang::ConstructJob().
|
inline |
Definition at line 123 of file Distro.h.
References OpenSUSE.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 129 of file Distro.h.
References UbuntuQuantal, and UbuntuTenacious.
Referenced by clang::driver::CudaInstallationDetector::CudaInstallationDetector(), and clang::driver::toolchains::Linux::Linux().
Definition at line 103 of file Distro.h.
References Distro(), and clang::Other.
Definition at line 111 of file Distro.h.
References Distro(), and clang::Other.
Definition at line 99 of file Distro.h.
References Distro(), and clang::Other.
Definition at line 107 of file Distro.h.
References Distro(), and clang::Other.