[all-commits] [llvm/llvm-project] 17eb19: Handle errors in expansion of response files

Serge Pavlov via All-commits all-commits at lists.llvm.org
Sat Oct 29 08:05:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17eb198de934eced784e16ec15e020a574ba07e1
      https://github.com/llvm/llvm-project/commit/17eb198de934eced784e16ec15e020a574ba07e1
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2022-10-29 (Sat, 29 Oct 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Tooling/ExpandResponseFilesCompilationDatabase.cpp
    M clang/test/Driver/config-file-errs.c
    M clang/tools/driver/driver.cpp
    M clang/unittests/Driver/ToolChainTest.cpp
    M flang/tools/flang-driver/driver.cpp
    M llvm/include/llvm/Support/CommandLine.h
    M llvm/lib/Support/CommandLine.cpp
    M llvm/unittests/Support/CommandLineTest.cpp

  Log Message:
  -----------
  Handle errors in expansion of response files

Previously an error raised during an expansion of response files (including
configuration files) was ignored and only the fact of its presence was
reported to the user with generic error messages. This made it difficult to
analyze problems. For example, if a configuration file tried to read an
inexistent file, the error message said that 'configuration file cannot
be found', which is wrong and misleading.

This change enhances handling errors in the expansion so that users
could get more informative error messages.

Differential Revision: https://reviews.llvm.org/D136090




More information about the All-commits mailing list