ΒΆvoid replace_extension(
    SmallVectorImpl<char>& path,
    const llvm::Twine& extension,
    llvm::sys::path::Style style = Style::native)

Description

Replace the file extension of \a path with \a extension.

Declared at: llvm/include/llvm/Support/Path.h:148

Parameters

SmallVectorImpl<char>& path
A path that has its extension replaced with \a extension.
const llvm::Twine& extension
The extension to be added. It may be empty. It may also optionally start with a '.', if it does not, one will be prepended.
llvm::sys::path::Style style = Style::native