clang
8.0.0
|
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) | |
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 147 of file Distro.cpp.
|
inline |
Definition at line 123 of file Distro.h.
References AlpineLinux.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 115 of file Distro.h.
References DebianBuster, and DebianLenny.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 111 of file Distro.h.
References OpenSUSE.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 119 of file Distro.h.
References UbuntuDisco, and UbuntuHardy.
Referenced by clang::driver::toolchains::Linux::Linux().