/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | Path.cpp | 475 SmallString<64> TempPath; in TEST_F() local 477 fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath)); in TEST_F() 481 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F() 482 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F() 500 ASSERT_NO_ERROR(fs::create_link(Twine(TempPath), Twine(TempPath2))); in TEST_F() 522 ASSERT_NO_ERROR(fs::remove(TempPath)); in TEST_F() 603 SmallString<64> TempPath; in TEST_F() local 605 fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath)); in TEST_F() 608 ASSERT_TRUE(sys::fs::exists(Twine(TempPath))); in TEST_F() 615 ASSERT_NE(TempPath.str(), TempPath2.str()); in TEST_F() [all …]
|
D | CommandLineTest.cpp | 631 SmallString<64> TempPath; in TEST() local 633 llvm::sys::fs::createTemporaryFile("resp-", ".txt", FileDescriptor, TempPath); in TEST() 636 std::ofstream RspFile(TempPath.c_str()); in TEST() 643 RspOpt.append(TempPath.c_str()); in TEST() 652 llvm::sys::fs::remove(TempPath.c_str()); in TEST()
|
/external/llvm/unittests/Support/ |
D | Path.cpp | 445 SmallString<64> TempPath; in TEST_F() local 447 fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath)); in TEST_F() 451 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F() 452 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F() 470 ASSERT_NO_ERROR(fs::create_link(Twine(TempPath), Twine(TempPath2))); in TEST_F() 494 SmallString<64> TempPath; in TEST_F() local 496 fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath)); in TEST_F() 499 ASSERT_TRUE(sys::fs::exists(Twine(TempPath))); in TEST_F() 506 ASSERT_NE(TempPath.str(), TempPath2.str()); in TEST_F() 509 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | Path.cpp | 171 SmallString<64> TempPath; in TEST_F() local 173 fs::unique_file("%%-%%-%%-%%.temp", FileDescriptor, TempPath)); in TEST_F() 177 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); in TEST_F() 184 ASSERT_NE(TempPath.str(), TempPath2.str()); in TEST_F() 188 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists); in TEST_F() 192 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), in TEST_F() 203 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2))); in TEST_F() 205 ASSERT_NO_ERROR(fs::equivalent(Twine(TempPath), Twine(TempPath2), equal)); in TEST_F() 210 ASSERT_NO_ERROR(fs::remove(Twine(TempPath), TempFileExists)); in TEST_F() 218 ASSERT_NO_ERROR(fs::exists(Twine(TempPath), TempFileExists)); in TEST_F()
|
/external/llvm/lib/Support/ |
D | FileOutputBuffer.cpp | 32 : Region(std::move(R)), FinalPath(Path), TempPath(TmpPath) {} in FileOutputBuffer() 35 sys::fs::remove(Twine(TempPath)); in ~FileOutputBuffer() 110 std::error_code EC = sys::fs::rename(Twine(TempPath), Twine(FinalPath)); in commit() 111 sys::DontRemoveFileOnSignal(TempPath); in commit()
|
/external/llvm/include/llvm/Support/ |
D | FileOutputBuffer.h | 81 StringRef Path, StringRef TempPath); 85 SmallString<128> TempPath; variable
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Windows/ |
D | Path.inc | 817 SmallVector<wchar_t, 1024> TempPath; 819 CharCount = ::GetFinalPathNameByHandleW(FileHandle, TempPath.begin(), 820 TempPath.capacity(), 822 if (CharCount < TempPath.capacity()) 829 TempPath.reserve(CharCount + 1); 835 TempPath.set_size(CharCount); 839 if (TempPath.back() == L'\0') { 841 TempPath.pop_back(); 844 return windows::UTF16ToUTF8(TempPath.data(), CharCount, ResultPath);
|
/external/llvm/lib/Support/Windows/ |
D | Path.inc | 823 SmallVector<wchar_t, 1024> TempPath; 825 CharCount = ::GetFinalPathNameByHandleW(FileHandle, TempPath.begin(), 826 TempPath.capacity(), 828 if (CharCount < TempPath.capacity()) 835 TempPath.reserve(CharCount + 1); 841 TempPath.set_size(CharCount); 845 if (TempPath.back() == L'\0') { 847 TempPath.pop_back(); 850 return windows::UTF16ToUTF8(TempPath.data(), CharCount, ResultPath);
|
/external/clang/lib/Frontend/ |
D | CompilerInstance.cpp | 666 SmallString<128> TempPath; in createOutputFile() local 667 TempPath = OutFile; in createOutputFile() 668 TempPath += "-%%%%%%%%"; in createOutputFile() 671 llvm::sys::fs::createUniqueFile(TempPath, fd, TempPath); in createOutputFile() 678 EC = llvm::sys::fs::createUniqueFile(TempPath, fd, TempPath); in createOutputFile() 684 OSFile = TempFile = TempPath.str(); in createOutputFile()
|
D | ASTUnit.cpp | 2471 SmallString<128> TempPath; in Save() local 2472 TempPath = File; in Save() 2473 TempPath += "-%%%%%%%%"; in Save() 2475 if (llvm::sys::fs::createUniqueFile(TempPath, fd, TempPath)) in Save() 2489 if (llvm::sys::fs::rename(TempPath, File)) { in Save() 2490 llvm::sys::fs::remove(TempPath); in Save()
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 2204 SmallString<64> TempPath; in applyEditsToTemp() local 2208 TempPath)) { in applyEditsToTemp() 2209 reportDiag("Could not create file: " + TempPath.str(), Diag); in applyEditsToTemp() 2217 return TempPath.str(); in applyEditsToTemp()
|
/external/clang/lib/Driver/ |
D | Driver.cpp | 2293 SmallString<128> TempPath(FinalOutput->getValue()); in GetNamedOutputPath() local 2294 llvm::sys::path::remove_filename(TempPath); in GetNamedOutputPath() 2296 llvm::sys::path::append(TempPath, OutputFileName); in GetNamedOutputPath() 2297 NamedOutput = C.getArgs().MakeArgString(TempPath.c_str()); in GetNamedOutputPath()
|