llvm-project/clang/lib/Tooling/DependencyScanning
Ben Langmuir 5482432bf6 [clang][deps] Compute command-lines for dependencies immediately
Instead of delaying the generation of command-lines to after all
dependencies are reported, compute them immediately. This is partly in
preparation for splitting the TU driver command into its constituent cc1
and other jobs, but it also just simplifies working with the compiler
invocation for modules if they are not "without paths".

Also change the computation of the default output path in
clang-scan-deps to scrape the implicit module cache from the
command-line rather than get it from the dependency, since that is now
unavailable at the time we make the callback.

Differential Revision: https://reviews.llvm.org/D131934
2022-08-16 14:25:27 -07:00
..
CMakeLists.txt [clang][deps] Support object files 2021-06-04 14:58:42 +02:00
DependencyScanningFilesystem.cpp [Tooling/DependencyScanning & Preprocessor] Refactor dependency scanning to produce pre-lexed preprocessor directive tokens, instead of minimized sources 2022-05-26 12:50:06 -07:00
DependencyScanningService.cpp [Tooling/DependencyScanning] Make skipping excluded PP ranges during dependency scanning the default 2022-04-28 15:23:03 -07:00
DependencyScanningTool.cpp [clang][deps] Compute command-lines for dependencies immediately 2022-08-16 14:25:27 -07:00
DependencyScanningWorker.cpp [clang][deps] Stop sharing FileManager across module builds in scanner 2022-08-08 12:13:54 -07:00
ModuleDepCollector.cpp [clang][deps] Compute command-lines for dependencies immediately 2022-08-16 14:25:27 -07:00