9#ifndef LLVM_CLANG_DRIVER_DISTRO_H
10#define LLVM_CLANG_DRIVER_DISTRO_H
12#include "llvm/Support/VirtualFileSystem.h"
13#include "llvm/TargetParser/Triple.h"
99 explicit Distro(llvm::vfs::FileSystem &VFS,
const llvm::Triple &TargetOrHost);
102 return DistroVal == Other.DistroVal;
106 return DistroVal != Other.DistroVal;
110 return DistroVal >= Other.DistroVal;
114 return DistroVal <= Other.DistroVal;
Distro - Helper class for detecting and classifying Linux distributions.
Distro()
Default constructor leaves the distribution unknown.
Distro(DistroType D)
Constructs a Distro type for specific distribution.
bool operator!=(const Distro &Other) const
bool operator==(const Distro &Other) const
bool IsAlpineLinux() const
bool operator<=(const Distro &Other) const
bool operator>=(const Distro &Other) const