ΒΆstd::error_code real_path(
const llvm::Twine& path,
SmallVectorImpl<char>& output,
bool expand_tilde = false)
std::error_code real_path(
const llvm::Twine& path,
SmallVectorImpl<char>& output,
bool expand_tilde = false)
Description
Collapse all . and .. patterns, resolve all symlinks, and optionally expand ~ expressions to the user's home directory.
Declared at: llvm/include/llvm/Support/FileSystem.h:366
Parameters
- const llvm::Twine& path
- The path to resolve.
- SmallVectorImpl<char>& output
- The location to store the resolved path.
- bool expand_tilde = false
- If true, resolves ~ expressions to the user's home directory.