Remove the last component from path unless it is the root dir.
Synopsis
Declared in <llvm/Support/Path.h>
void
remove_filename(
SmallVectorImpl<char>& path,
Style style = Style::native);
Description
Similar to the POSIX "dirname" utility.
directory/filename.cpp => directory/
directory/ => directory
filename.cpp => <empty>
/ => /
Parameters
Name |
Description |
path |
A path that is modified to not have a file component. |
style |
The path style to use. "native" means derive from the host. |
Created with MrDocs