19 tool_output_file::CleanupInstaller::CleanupInstaller(
StringRef Filename)
20 : Filename(Filename), Keep(
false) {
26 tool_output_file::CleanupInstaller::~CleanupInstaller() {
28 if (!Keep && Filename !=
"-")
37 tool_output_file::tool_output_file(
StringRef Filename, std::error_code &EC,
39 : Installer(Filename), OS(Filename, EC, Flags) {
42 Installer.Keep =
true;
46 : Installer(Filename), OS(FD,
true) {}
std::error_code remove(const Twine &path, bool IgnoreNonExisting=true)
Remove path.
void DontRemoveFileOnSignal(StringRef Filename)
This function removes a file from the list of files to be removed on signal delivery.
bool RemoveFileOnSignal(StringRef Filename, std::string *ErrMsg=nullptr)
This function registers signal handlers to ensure that if a signal gets delivered that the named file...
StringRef - Represent a constant reference to a string, i.e.