Home
last modified time | relevance | path

Searched refs:TempPath (Results 1 – 5 of 5) sorted by relevance

/external/llvm/unittests/Support/
DPath.cpp171 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()
187 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F()
193 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists); in TEST_F()
197 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), in TEST_F()
208 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2))); in TEST_F()
210 ASSERT_NO_ERROR(fs::equivalent(Twine(TempPath), Twine(TempPath2), equal)); in TEST_F()
212 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F()
[all …]
/external/llvm/lib/Support/
DFileOutputBuffer.cpp30 TempPath.assign(TmpPath); in FileOutputBuffer()
39 sys::fs::remove(Twine(TempPath), Existed); in ~FileOutputBuffer()
137 EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize); in commit()
143 return sys::fs::rename(Twine(TempPath), Twine(FinalPath)); in commit()
/external/llvm/include/llvm/Support/
DFileOutputBuffer.h85 StringRef Path, StringRef TempPath);
90 SmallString<128> TempPath; variable
/external/clang/lib/Frontend/
DCompilerInstance.cpp553 SmallString<128> TempPath; in createOutputFile() local
554 TempPath = OutFile; in createOutputFile()
555 TempPath += "-%%%%%%%%"; in createOutputFile()
557 if (llvm::sys::fs::unique_file(TempPath.str(), fd, TempPath, in createOutputFile()
561 OSFile = TempFile = TempPath.str(); in createOutputFile()
DASTUnit.cpp2463 SmallString<128> TempPath; in Save() local
2464 TempPath = File; in Save()
2465 TempPath += "-%%%%%%%%"; in Save()
2467 if (llvm::sys::fs::unique_file(TempPath.str(), fd, TempPath, in Save()
2482 if (llvm::sys::fs::rename(TempPath.str(), File)) { in Save()
2484 llvm::sys::fs::remove(TempPath.str(), exists); in Save()