llvm::sys::path::has_root_directory

Has root directory?

Synopsis

Declared in <llvm/Support/Path.h>

bool
has_root_directory(
    Twine const& path,
    Style style = Style::native);

Description

root_directory != ""

Return Value

True if the path has a root directory, false otherwise.

Parameters

NameDescription
pathInput path.
styleThe style of path (e.g. Windows or POSIX). "native" style means to derive the style from the host.