[find-all-symbols] Fix racy yaml file writing.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 29 Apr 2016 10:16:28 +0000 (10:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 29 Apr 2016 10:16:28 +0000 (10:16 +0000)
commit027163e98bd6b107fa2cc31a2456d9703b83e347
tree2db87ee7a6013bfd2b463e6d138316aed5ea3bd2
parent07b79c24c77ffbe73de920c592df9bcf7bc5104a
[find-all-symbols] Fix racy yaml file writing.

If multiple find-all-symbols processes access the temporary directory
simultaneously with two files with the same name they would collide and
create a broken yaml file. Fix this by using the safe createUniqueFile
API from LLVM instead.

Differential Revision: http://reviews.llvm.org/D19717

llvm-svn: 268021
clang-tools-extra/include-fixer/find-all-symbols/SymbolInfo.cpp
clang-tools-extra/include-fixer/find-all-symbols/SymbolInfo.h
clang-tools-extra/include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp