|
clang
5.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 |
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 135 of file Distro.cpp.
|
inline |
Definition at line 109 of file Distro.h.
References DebianLenny, and DebianStretch.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Definition at line 105 of file Distro.h.
References OpenSUSE.
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
|
inline |
Definition at line 113 of file Distro.h.
References UbuntuArtful, and UbuntuHardy.
Referenced by clang::driver::toolchains::Linux::Linux().
1.8.6