llvm-project/clang/lib/Tooling/DependencyScanning
Alex Lorenz c68f247275 [clang-scan-deps] ignore top-level module dependencies that aren't actually imported
Whenever -fmodule-name=top_level_module name is parsed, and clang actually tries to
import top_level_module, the headers are imported textually and the module isn't actually
built. However, the dependency scanner could still record it as a potential dependency
if the module was reimported and thus recorded by the preprocessor callbacks.
This change avoids collecting this kind of module as a dependency by verifying that we don't
collect top level modules without actual PCM files.

Differential Revision: https://reviews.llvm.org/D106100
2021-07-20 11:11:28 -07:00
..
CMakeLists.txt [clang][deps] Support object files 2021-06-04 14:58:42 +02:00
DependencyScanningFilesystem.cpp [clang][deps] Fix test by checking ignored files correctly 2021-07-20 13:20:56 +02:00
DependencyScanningService.cpp [clang][deps] Support object files 2021-06-04 14:58:42 +02:00
DependencyScanningTool.cpp [clang][deps] NFC: Handle `DependencyOutputOptions` only once 2021-06-14 15:16:08 +02:00
DependencyScanningWorker.cpp [clang][deps] Avoid minimizing PCH input files 2021-07-20 12:20:10 +02:00
ModuleDepCollector.cpp [clang-scan-deps] ignore top-level module dependencies that aren't actually imported 2021-07-20 11:11:28 -07:00