Get parent path.
Declared in <llvm/Support/Path.h>
StringRef
parent_path(
StringRef path,
Style style = Style::native);
/ => <empty>
/foo => /
foo/../bar => foo/..
The parent path of path if one exists, otherwise "".
| Name | Description |
|---|---|
| path | Input path. |
| style | The style of path (e.g. Windows or POSIX). "native" style means to derive the style from the host. |