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

Methods

Distro()

Description

Default constructor leaves the distribution unknown.

Declared at: clang/include/clang/Driver/Distro.h:91

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)

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

Declared at: clang/include/clang/Driver/Distro.h:133

bool IsDebian() const

Declared at: clang/include/clang/Driver/Distro.h:125

bool IsGentoo() const

Declared at: clang/include/clang/Driver/Distro.h:135

bool IsOpenSUSE() const

Declared at: clang/include/clang/Driver/Distro.h:123

bool IsRedhat() const

Description

@ } @ {

Declared at: clang/include/clang/Driver/Distro.h:119

bool IsUbuntu() const

Declared at: clang/include/clang/Driver/Distro.h:129