[all-commits] [llvm/llvm-project] fd3d7a: Handle errors in expansion of response files
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Mon Oct 31 01:38:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd3d7a9f8cbb5ad81fb96d92d5f7b1d51a4d4127
https://github.com/llvm/llvm-project/commit/fd3d7a9f8cbb5ad81fb96d92d5f7b1d51a4d4127
Author: Serge Pavlov <sepavloff at gmail.com>
Date: 2022-10-31 (Mon, 31 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