llvm-project/clang/test/ClangScanDeps
Michael Spencer d816d9bdc5 [clang][ScanDeps] Fix issue with multiple commands with the same input.
Previously, given a CompilationDatabase with two commands for the same
source file we would report that file twice with the union of the
dependencies for each command both times.

This was due to the way `ClangTool` runs actions given an input source
file (see the comment in `DependencyScanningTool.cpp`). This commit adds
a `SingleCommandCompilationDatabase` that is created with each
`CompileCommand` in the original CDB, which is then used for each
`ClangTool` invocation. This gives us a single run of
`DependencyScanningAction` per `CompileCommand`.

I looked at using `AllTUsToolExecutor` which is a parallel tool
executor, but I'm not sure it's suitable for `clang-scan-deps` as it
does a lot more sharing of state than `AllTUsToolExecutor` expects.

Differential Revision: https://reviews.llvm.org/D69643
2019-10-31 14:22:01 -07:00
..
Inputs [clang][ScanDeps] Fix issue with multiple commands with the same input. 2019-10-31 14:22:01 -07:00
error.cpp [clang][ScanDeps] Fix issue with multiple commands with the same input. 2019-10-31 14:22:01 -07:00
header_stat_before_open.m [clang-scan-deps] Add dependency targets 2019-09-12 00:48:45 +00:00
headerwithdirname.cpp [clang-scan-deps] Fix for headers having the same name as a directory 2019-09-13 22:12:02 +00:00
headerwithdirnamefollowedbyinclude.cpp In openFileForRead don't cache erroneous entries if the error relates to them being directories. Add tests. 2019-10-10 15:29:01 +00:00
modules-full.cpp Disable new clang-scan-deps test on Windows due to backslash path matching problems 2019-10-30 15:51:34 -07:00
modules.cpp [clang-scan-deps] Add basic support for modules. 2019-10-24 16:19:11 -07:00
no-werror.cpp [clang-scan-deps][NFC] Fix tests - prevent FileCheck matching test dir path 2019-09-11 00:30:26 +00:00
regular_cdb.cpp [clang][ScanDeps] Fix issue with multiple commands with the same input. 2019-10-31 14:22:01 -07:00
static-analyzer.c [NFC] Fix ClangScanDeps/static-analyzer.c test on Windows 2019-10-14 21:06:11 +00:00
strip_diag_serialize.cpp [clang-scan-deps] strip the --serialize-diagnostics argument 2019-09-21 00:17:26 +00:00
subframework_header_dir_symlink.m [clang-scan-deps] Add dependency targets 2019-09-12 00:48:45 +00:00
symlink.cpp [clang-scan-deps][NFC] Fix tests - prevent FileCheck matching test dir path 2019-09-11 00:30:26 +00:00
vfsoverlay.cpp [clang-scan-deps] Add dependency targets 2019-09-12 00:48:45 +00:00