forked from OSchip/llvm-project
d816d9bdc5
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 |
||
---|---|---|
.. | ||
Inputs | ||
error.cpp | ||
header_stat_before_open.m | ||
headerwithdirname.cpp | ||
headerwithdirnamefollowedbyinclude.cpp | ||
modules-full.cpp | ||
modules.cpp | ||
no-werror.cpp | ||
regular_cdb.cpp | ||
static-analyzer.c | ||
strip_diag_serialize.cpp | ||
subframework_header_dir_symlink.m | ||
symlink.cpp | ||
vfsoverlay.cpp |