clang
10.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 169 of file Distro.cpp.
|
inline |
Definition at line 126 of file Distro.h.
References AlpineLinux.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 118 of file Distro.h.
References DebianBullseye, and DebianLenny.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 114 of file Distro.h.
References OpenSUSE.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 122 of file Distro.h.
References UbuntuFocal, and UbuntuHardy.
Referenced by clang::driver::toolchains::Linux::Linux().