class Distro
Declaration
class Distro { /* full declaration omitted */ };
Description
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.
Declared at: clang/include/clang/Driver/Distro.h:23
Member Variables
- private clang::driver::Distro::DistroType DistroVal
- The distribution, possibly with specific version.
Method Overview
- public Distro()
- public Distro(clang::driver::Distro::DistroType D)
- public Distro(llvm::vfs::FileSystem & VFS, const llvm::Triple & TargetOrHost)
- public bool IsAlpineLinux() const
- public bool IsDebian() const
- public bool IsGentoo() const
- public bool IsOpenSUSE() const
- public bool IsRedhat() const
- public bool IsUbuntu() const
Methods
¶Distro()
Distro()
Description
Default constructor leaves the distribution unknown.
Declared at: clang/include/clang/Driver/Distro.h:91
¶Distro(clang::driver::Distro::DistroType D)
Distro(clang::driver::Distro::DistroType D)
Description
Constructs a Distro type for specific distribution.
Declared at: clang/include/clang/Driver/Distro.h:94
Parameters
- clang::driver::Distro::DistroType D
¶Distro(llvm::vfs::FileSystem& VFS,
const llvm::Triple& TargetOrHost)
Distro(llvm::vfs::FileSystem& VFS,
const llvm::Triple& TargetOrHost)
Description
Detects the distribution using specified VFS.
Declared at: clang/include/clang/Driver/Distro.h:97
Parameters
- llvm::vfs::FileSystem& VFS
- const llvm::Triple& TargetOrHost
¶bool IsAlpineLinux() const
bool IsAlpineLinux() const
Declared at: clang/include/clang/Driver/Distro.h:133
¶bool IsDebian() const
bool IsDebian() const
Declared at: clang/include/clang/Driver/Distro.h:125
¶bool IsGentoo() const
bool IsGentoo() const
Declared at: clang/include/clang/Driver/Distro.h:135
¶bool IsOpenSUSE() const
bool IsOpenSUSE() const
Declared at: clang/include/clang/Driver/Distro.h:123
¶bool IsRedhat() const
bool IsRedhat() const
Description
@ } @ {
Declared at: clang/include/clang/Driver/Distro.h:119
¶bool IsUbuntu() const
bool IsUbuntu() const
Declared at: clang/include/clang/Driver/Distro.h:129