llvm::sys::fs::expand_tilde

Expands ~ expressions to the user's home directory. On Unix ~user directories are resolved as well.

Synopsis

Declared in <llvm/Support/FileSystem.h>

void
expand_tilde(
    Twine const& path,
    SmallVectorImpl<char>& output);

Parameters

NameDescription
pathThe path to resolve.
outputLocation to store the expanded path.