llvm-project/clang/test/ClangScanDeps
Jan Svoboda 19017c2435 [clang][deps] Return the whole TU command line
The dependency scanner already generates canonical -cc1 command lines that can be used to compile discovered modular dependencies.

For translation unit command lines, the scanner only generates additional driver arguments the build system is expected to append to the original command line.

While this works most of the time, there are situations where that's not the case. For example with `-Wunused-command-line-argument`, Clang will complain about the `-fmodules-cache-path=` argument that's not being used in explicit modular builds. Combine that with `-Werror` and the build outright fails.

To prevent such failures, this patch changes the dependency scanner to return the full driver command line to compile the original translation unit. This gives us more opportunities to massage the arguments into something reasonable.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D118986
2022-02-23 15:46:20 +01:00
..
Inputs [clang][deps] Remove hard-coded resource directory from tests 2021-12-14 10:59:47 +01:00
diagnostics.c [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
error.cpp [clang][deps] Sanitize both instances of DiagnosticOptions 2021-09-10 14:47:21 +02:00
has_include_if_elif.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
header-search-pruning.cpp [clang][deps] Prune unused header search paths 2021-10-12 12:39:23 +02:00
header_stat_before_open.m Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
headerwithdirname.cpp [clang][deps] Adapt test to be compatible when the assembler is called by default 2022-01-28 11:40:16 -05:00
headerwithdirnamefollowedbyinclude.cpp [clang][deps] Adapt test to be compatible when the assembler is called by default 2022-01-28 11:40:16 -05:00
modulemap-via-vfs.m Re-land "[Clang][ScanDeps] Use the virtual path for module maps" 2022-01-06 21:05:05 +00:00
modules-context-hash.c [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-fmodule-name-no-module-built.m [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-full-by-mod-name.cpp [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
modules-full.cpp [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-inferred-explicit-build.m [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-inferred.m [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-pch-common-submodule.c [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-pch-common-via-submodule.c [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-pch.c [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules-symlink.c [clang][deps] Return the whole TU command line 2022-02-23 15:46:20 +01:00
modules.cpp [clang][deps] Fix failing modules.cpp test 2021-06-14 12:55:56 +02:00
no-werror.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
preprocess_minimized_pragmas.cpp [clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code. 2021-11-01 16:04:52 -04:00
preserved-args.c [clang][deps] Prevent unintended modifications of the original TU command-line 2021-06-14 13:58:19 +02:00
regular_cdb.cpp [clang][deps] Move invocation adjustments from `clang-scan-deps` to `DependencyScanning` library 2021-06-14 12:23:33 +02:00
relative_directory.cpp [clang-scan-deps] Fix for input file given as relative path in compilation database "command" entry. 2020-11-12 08:48:17 -05:00
removed-args.c [clang][deps] Reset some benign codegen options 2021-12-08 11:53:50 +01:00
resource_directory.c [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
static-analyzer.c Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
strip_diag_serialize.cpp [clang][deps] Move stripping of diagnostic serialization from `clang-scan-deps` to `DependencyScanning` library 2021-06-14 12:23:32 +02:00
subframework_header_dir_symlink.m
symlink.cpp
target-filename.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00
vfsoverlay.cpp Reland "[clang-scan-deps] Add support for clang-cl" 2021-04-21 07:56:39 -04:00