llvm::sys::path::is_relative

Is path relative?

Synopsis

Declared in <llvm/Support/Path.h>

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

Return Value

True if the path is relative, false if it is not.

Parameters

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