ΒΆbool is_absolute(
const llvm::Twine& path,
llvm::sys::path::Style style = Style::native)
bool is_absolute(
const llvm::Twine& path,
llvm::sys::path::Style style = Style::native)
Description
Is path absolute? According to cppreference.com, C++17 states: "An absolute path is a path that unambiguously identifies the location of a file without reference to an additional starting location." In other words, the rules are: 1) POSIX style paths with nonempty root directory are absolute. 2) Windows style paths with nonempty root name and root directory are absolute. 3) No other paths are absolute.
Declared at: llvm/include/llvm/Support/Path.h:516
Parameters
- const llvm::Twine& path
- Input path.
- llvm::sys::path::Style style = Style::native