clang
17.0.0git
|
Distro - Helper class for detecting and classifying Linux distributions. More...
#include "clang/Driver/Distro.h"
Public Member Functions | |
Constructors | |
Distro () | |
Default constructor leaves the distribution unknown. More... | |
Distro (DistroType D) | |
Constructs a Distro type for specific distribution. More... | |
Distro (llvm::vfs::FileSystem &VFS, const llvm::Triple &TargetOrHost) | |
Detects the distribution using specified VFS. More... | |
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 |
|
inline |
|
explicit |
Detects the distribution using specified VFS.
Definition at line 236 of file Distro.cpp.
|
inline |
Definition at line 134 of file Distro.h.
References AlpineLinux.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 126 of file Distro.h.
References DebianLenny, and DebianTrixie.
|
inline |
|
inline |
Definition at line 124 of file Distro.h.
References OpenSUSE.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 130 of file Distro.h.
References UbuntuHardy, and UbuntuLunar.
Referenced by clang::driver::toolchains::Linux::Linux().