llvm-project/clang/lib/Tooling/DependencyScanning
Ben Langmuir 3ce78cbd23 [clang][deps] Fix handling of -MT in module command-line
Follow-up to 6626f6fec3, this fixes the handling of -MT
* If no targets are provided, we need to invent one since cc1 expects
  the driver to have handled it. The default is to use -o, quoting as
  necessary for a make target.
* Fix the splitting for empty string, which was incorrectly treated as
  {""} instead of {}.
* Add a way to test this behaviour in clang-scan-deps.

Differential Revision: https://reviews.llvm.org/D129607
2022-07-13 13:36:15 -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] Override dependency and serialized diag files for modules 2022-07-12 08:19:52 -07:00
DependencyScanningWorker.cpp [clang] Don't use Optional::hasValue (NFC) 2022-06-20 10:51:34 -07:00
ModuleDepCollector.cpp [clang][deps] Fix handling of -MT in module command-line 2022-07-13 13:36:15 -07:00