llvm::sys::path::append

Append to path.

Synopsis

Declared in <llvm/Support/Path.h>

void
append(
    SmallVectorImpl<char>& path,
    Twine const& a,
    Twine const& b = "",
    Twine const& c = "",
    Twine const& d = "");

Description


/foo  + bar/f => /foo/bar/f
/foo/ + bar/f => /foo/bar/f
foo   + bar/f => foo/bar/f
foo   + /bar/f => foo/bar/f (FIXME: will be changed to /bar/f to align
                             with C++17 std::filesystem::path::append)

Parameters

NameDescription
pathSet to path + component.
aThe component to be appended to path.
bTwine - A lightweight data structure for efficiently representing the concatenation of temporary values as strings.
cTwine - A lightweight data structure for efficiently representing the concatenation of temporary values as strings.
dTwine - A lightweight data structure for efficiently representing the concatenation of temporary values as strings.