clang-import-test: Clean up error output for files that cannot be found
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 9 Dec 2020 21:54:56 +0000 (13:54 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 12 Dec 2020 01:07:58 +0000 (17:07 -0800)
commit8c86197de3cba4257f26133e837d64e5f8ece210
tree378844051405c4afbcbe8e785406409db30103ef
parenta60043219907b8f370263b7d3d4827b83388d8cf
clang-import-test: Clean up error output for files that cannot be found

Pass on the filesystem error string `FileManager::getFileRef` in
`clang-import-test`'s `ParseSource` function. Also include "error:" and
a newline in the output. As a side effect, migrate to the `FileEntryRef`
overload of `SourceManager::createFileID`.

No real functionality change here, just slightly better output on error.

Differential Revision: https://reviews.llvm.org/D92971
clang/test/Import/missing-import/test.c
clang/tools/clang-import-test/clang-import-test.cpp