reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/FileSystem.h
  395 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);

References

include/llvm/Support/FileUtilities.h
   56         sys::fs::remove(Filename);
   66         sys::fs::remove(Filename);
lib/LTO/LTOCodeGenerator.cpp
  281     sys::fs::remove(Twine(Filename));
  287     sys::fs::remove(Twine(Filename));
  307     sys::fs::remove(NativeObjectPath);
  312   sys::fs::remove(NativeObjectPath);
lib/LTO/ThinLTOCodeGenerator.cpp
  867     sys::fs::remove(OutputPath);
lib/Support/CachePruning.cpp
  236       sys::fs::remove(File->path());
  250     sys::fs::remove(FileInfo->Path);
lib/Support/GraphWriter.cpp
  101     sys::fs::remove(Filename);
lib/Support/LockFileManager.cpp
   57     sys::fs::remove(LockFileName);
   74   sys::fs::remove(LockFileName);
  147     sys::fs::remove(Filename);
  208       sys::fs::remove(UniqueLockFileName);
  238       sys::fs::remove(UniqueLockFileName);
  250     if ((EC = sys::fs::remove(LockFileName))) {
  286   sys::fs::remove(LockFileName);
  287   sys::fs::remove(UniqueLockFileName);
  354   return sys::fs::remove(LockFileName);
lib/Support/Path.cpp
 1150     RemoveEC = fs::remove(TmpName);
 1187       remove(TmpName);
lib/Support/ToolOutputFile.cpp
   28     sys::fs::remove(Filename);
lib/Support/Unix/Path.inc
 1050     EC = fs::remove(Item.path(), true);
 1065   EC = fs::remove(path, true);
tools/bugpoint/CrashDebugger.cpp
  102     sys::fs::remove(PrefixOutput);
tools/bugpoint/ExecutionDriver.cpp
  404   sys::fs::remove(OutputFile);
  460     sys::fs::remove(*Output);
  465     sys::fs::remove(BitcodeFile);
tools/bugpoint/FindBugs.cpp
   92     sys::fs::remove(Filename);
tools/bugpoint/Miscompilation.cpp
  129     sys::fs::remove(BitcodeResult);
  144   sys::fs::remove(BitcodeResult);
tools/bugpoint/OptimizerDriver.cpp
  246     sys::fs::remove(OutputFilename);
  282   sys::fs::remove(BitcodeResult);
tools/bugpoint/ToolRunner.cpp
  136   sys::fs::remove(ErrorFilename.c_str());
  476   sys::fs::remove(OutputAsmFile);
tools/clang/lib/ARCMigrate/FileRemapper.cpp
   38     llvm::sys::fs::remove(infoFile);
tools/clang/lib/Driver/Compilation.cpp
  116   if (std::error_code EC = llvm::sys::fs::remove(File)) {
tools/clang/lib/Frontend/CompilerInstance.cpp
  643         llvm::sys::fs::remove(OF.TempFilename);
  655           llvm::sys::fs::remove(OF.TempFilename);
  659       llvm::sys::fs::remove(OF.Filename);
  664       llvm::sys::fs::remove(Module.second);
 1459       llvm::sys::fs::remove(File->path());
 1463       llvm::sys::fs::remove(TimpestampFilename);
 1470       llvm::sys::fs::remove(Dir->path());
tools/clang/lib/Frontend/DependencyFile.cpp
  309     llvm::sys::fs::remove(OutputFile);
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  110     llvm::sys::fs::remove(File.getKey());
  125   llvm::sys::fs::remove(File);
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  753   if (!llvm::sys::fs::remove(State->OutputFile))
tools/clang/lib/Rewrite/Rewriter.cpp
  448       llvm::sys::fs::remove(TempFilename);
tools/clang/tools/driver/cc1as_main.cpp
  535       sys::fs::remove(Opts.OutputPath);
  537       sys::fs::remove(Opts.SplitDwarfOutput);
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
  193   llvm::sys::fs::remove(Input);
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  249     std::error_code Error = llvm::sys::fs::remove(Filename);
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
  118       [&StdErrPath]() { llvm::sys::fs::remove(StdErrPath); });
tools/clang/tools/libclang/CIndexer.cpp
  218     llvm::sys::fs::remove(File);
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
   81         remove(getPathInWatched(testFile), /*IgnoreNonExisting=*/false);
tools/clang/unittests/Tooling/RefactoringTest.cpp
  595       std::error_code EC = llvm::sys::fs::remove(Name);
tools/clang/unittests/Tooling/ToolingTest.cpp
  330   EXPECT_FALSE(llvm::sys::fs::remove(DepFilePath.str()));
tools/clang/unittests/libclang/TestUtils.h
   47       llvm::sys::fs::remove(Path);
   48     llvm::sys::fs::remove(TestDir);
tools/gold/gold-plugin.cpp
 1118       std::error_code EC = sys::fs::remove(output_name);
 1131     std::error_code EC = sys::fs::remove(Name);
tools/lld/COFF/Driver.cpp
  798     sys::fs::remove(tmpName);
tools/lld/COFF/DriverUtils.cpp
  339     if (sys::fs::remove(path))
tools/lld/Common/Filesystem.cpp
   56   sys::fs::remove(path);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
  752   llvm::sys::fs::remove(tmpFl);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
  222   std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
  333   std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
  463   std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
  693   std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
tools/lldb/source/Host/common/Host.cpp
  575   llvm::sys::fs::remove(output_file_spec.GetPath());
tools/lldb/source/Host/posix/DomainSocket.cpp
  126   llvm::sys::fs::remove(name);
tools/lldb/source/Host/posix/PipePosix.cpp
  231   return llvm::sys::fs::remove(name);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
  721   Status error(llvm::sys::fs::remove(path));
tools/lldb/source/Target/ModuleCache.cpp
  120   llvm::sys::fs::remove(sysroot_module_path_spec.GetPath());
  123   llvm::sys::fs::remove(symfile_spec.GetPath());
  185   llvm::sys::fs::remove(m_file_spec.GetPath());
tools/lldb/source/Target/Platform.cpp
  700       llvm::sys::fs::remove(fixed_dst.GetPath());
  719       llvm::sys::fs::remove(fixed_dst.GetPath());
  724       llvm::sys::fs::remove(fixed_dst.GetPath());
tools/lldb/source/Target/RemoteAwarePlatform.cpp
  132     return llvm::sys::fs::remove(file_spec.GetPath());
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   62           llvm::sys::fs::remove(*Name, /*IgnoreNonExisting*/ false))
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  257   if (auto EC = sys::fs::remove(TmpPath)) {
unittests/BinaryFormat/TestFileMagic.cpp
   45   void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); }
  137     ASSERT_NO_ERROR(fs::remove(Twine(file_pathname)));
unittests/LineEditor/LineEditor.cpp
   33     sys::fs::remove(HistPath.str());
unittests/Support/CommandLineTest.cpp
  777   llvm::sys::fs::remove(TempPath.c_str());
  850   llvm::sys::fs::remove(IncludedFileName3);
  851   llvm::sys::fs::remove(IncludedFileName2);
  852   llvm::sys::fs::remove(IncDir);
  853   llvm::sys::fs::remove(IncludedFileName);
  854   llvm::sys::fs::remove(TestDir);
 1045   llvm::sys::fs::remove(TestCfg2);
 1046   llvm::sys::fs::remove(TestCfg);
 1047   llvm::sys::fs::remove(TestDir);
 1131       sys::fs::remove(std::string(FilePath.data(), FilePath.size()));
unittests/Support/FileCollectorTest.cpp
   78       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
   95       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
unittests/Support/FileOutputBufferTest.cpp
   61   ASSERT_NO_ERROR(fs::remove(File1.str()));
   78   ASSERT_NO_ERROR(fs::remove(File2.str()));
   99   ASSERT_NO_ERROR(fs::remove(File3.str()));
  119   ASSERT_NO_ERROR(fs::remove(File4.str()));
  122   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
unittests/Support/LockFileManagerTest.cpp
   42   EC = sys::fs::remove(StringRef(TmpDir));
   71   EC = sys::fs::remove(StringRef(TmpFileLock));
   84   EC = sys::fs::remove(StringRef(TmpDir));
  117   EC = sys::fs::remove("inner");
  122   EC = sys::fs::remove(StringRef(TmpDir));
unittests/Support/Path.cpp
  450   void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); }
  477   ASSERT_NO_ERROR(fs::remove(Twine(TempPath2)));
  500   ASSERT_NO_ERROR(fs::remove(Dir1));
  501   ASSERT_NO_ERROR(fs::remove(Dir2));
  502   ASSERT_NO_ERROR(fs::remove(TempPath2));
  503   ASSERT_NO_ERROR(fs::remove(TempPath));
  596   ASSERT_NO_ERROR(fs::remove(TestDirectory + "/keep"));
  635   ASSERT_NO_ERROR(fs::remove(Twine(TempPath2)));
  636   ASSERT_NO_ERROR(fs::remove(Twine(TempPath2)));
  637   ASSERT_EQ(fs::remove(Twine(TempPath2), false),
  664   ASSERT_NO_ERROR(fs::remove(Twine(TempPath)));
  667   ASSERT_NO_ERROR(fs::remove(Twine(TempPath2)));
  738   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "foo"));
  881   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/a0/aa1"));
  882   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/a0/ab1"));
  883   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/a0"));
  885       fs::remove(Twine(TestDirectory) + "/recursive/dontlookhere/da1"));
  886   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/dontlookhere"));
  887   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/pop/p1"));
  888   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/pop"));
  889   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/z0/za1"));
  890   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/z0"));
  891   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive"));
  902   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel/a/b/c"));
  903   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel/a/b"));
  904   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel/a"));
  905   ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel"));
 1068   ASSERT_NO_ERROR(fs::remove(TempPath));
 1126   ASSERT_NO_ERROR(fs::remove(TempPath));
unittests/Support/ProgramTest.cpp
  335   ASSERT_NO_ERROR(fs::remove(file_pathname.str()));
  336   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
unittests/Support/ReplaceFileTest.cpp
  114   ASSERT_NO_ERROR(fs::remove(SourceFileName));
  115   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
  169   ASSERT_NO_ERROR(fs::remove(TargetFileName));
  170   ASSERT_NO_ERROR(fs::remove(TargetTmp0FileName));
  171   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
unittests/Support/SpecialCaseListTest.cpp
  188     sys::fs::remove(Path);
unittests/Support/TarWriterTest.cpp
   64   sys::fs::remove(Path);
unittests/Support/VirtualFileSystemTest.cpp
  435       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
  452       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
  473       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));