[all-commits] [llvm/llvm-project] e495ea: [clang] Include the error message in file reading ...

Hans via All-commits all-commits at lists.llvm.org
Fri Mar 17 05:48:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e495eabd326801c1e00508898dbcb04073a31014
      https://github.com/llvm/llvm-project/commit/e495eabd326801c1e00508898dbcb04073a31014
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/lib/Frontend/CompilerInstance.cpp
    M clang/tools/driver/cc1as_main.cpp
    M flang/lib/Frontend/FrontendAction.cpp

  Log Message:
  -----------
  [clang] Include the error message in file reading error diagnostic

in order to provide as much information as possible to the user. The
diagnostic will now look like for example:

  error: error reading '/tmp/foo.c': Permission denied

(This addresses a FIXME from 2019, 9ef6c49baf45)

Differential revision: https://reviews.llvm.org/D146280




More information about the All-commits mailing list