[all-commits] [llvm/llvm-project] 8c8619: clang-import-test: Clean up error output for files...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Fri Dec 11 17:22:12 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c86197de3cba4257f26133e837d64e5f8ece210
      https://github.com/llvm/llvm-project/commit/8c86197de3cba4257f26133e837d64e5f8ece210
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-12-11 (Fri, 11 Dec 2020)

  Changed paths:
    M clang/test/Import/missing-import/test.c
    M clang/tools/clang-import-test/clang-import-test.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list