clang
6.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 (clang::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 |
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 141 of file Distro.cpp.
|
inline |
Definition at line 120 of file Distro.h.
References AlpineLinux.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 112 of file Distro.h.
References DebianBuster, and DebianLenny.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 108 of file Distro.h.
References OpenSUSE.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 116 of file Distro.h.
References UbuntuBionic, and UbuntuHardy.
Referenced by clang::driver::toolchains::Linux::Linux().