[cfe-commits] r157260 - in /cfe/trunk: include/clang/Rewrite/Rewriter.h lib/Rewrite/Rewriter.cpp unittests/CMakeLists.txt unittests/Tooling/RewriterTest.cpp unittests/Tooling/RewriterTestContext.h

Manuel,

After the discussion at last night, I have agreed that
GetTemporaryDirectory() on Win32 would do bad thing, thank you.

dir = GetTemporaryDirectory();
dir.eraseFromDisk(erase_contents = true);
dir = GetTemporaryDirectory(); /* It doesn't create anything on Win32
due to caching */

I suppose Manuel wants GetTemporaryDirectory() to keep semantics
similar mkdtemp(3).

Though it is in PathV1, could we fix?

...Takumi

Michael pointed out in IRC that we have unique_file in v2 which should replace this. I’ll change the code.