[clang-tools-extra] r185718 - Use llvm::sys::fs::createTemporaryFile.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 5 13:01:04 PDT 2013
Author: rafael
Date: Fri Jul 5 15:01:03 2013
New Revision: 185718
URL: http://llvm.org/viewvc/llvm-project?rev=185718&view=rev
Log:
Use llvm::sys::fs::createTemporaryFile.
Modified:
clang-tools-extra/trunk/unittests/cpp11-migrate/IncludeExcludeTest.cpp
Modified: clang-tools-extra/trunk/unittests/cpp11-migrate/IncludeExcludeTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/cpp11-migrate/IncludeExcludeTest.cpp?rev=185718&r1=185717&r2=185718&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/cpp11-migrate/IncludeExcludeTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/cpp11-migrate/IncludeExcludeTest.cpp Fri Jul 5 15:01:03 2013
@@ -54,7 +54,7 @@ struct InputFiles {
int FD;
ASSERT_NO_ERROR(
- llvm::sys::fs::unique_file("include-%%%%%%", FD, Path));
+ llvm::sys::fs::createTemporaryFile("include", "", FD, Path));
IncludeDataPath = Path.str();
{
llvm::raw_fd_ostream IncludeDataFile(FD, true);
@@ -64,7 +64,7 @@ struct InputFiles {
}
ASSERT_NO_ERROR(
- llvm::sys::fs::unique_file("exclude-%%%%%%", FD, Path));
+ llvm::sys::fs::createTemporaryFile("exclude", "", FD, Path));
ExcludeDataPath = Path.str();
{
llvm::raw_fd_ostream ExcludeDataFile(FD, true);
More information about the cfe-commits
mailing list