[NFCI] [ClangScanDeps] [P1689] Use PreprocessorOnly Action for P1689 It is fine enough to use PreprocessorOnly action for P1689 format. We don't need to read any PCH or module files. GitOrigin-RevId: 62fec3d23d2325869e6eba0263b0b9f834c2067f
diff --git a/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp b/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp index 1a21a4f..09ad5eb 100644 --- a/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp +++ b/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
@@ -430,7 +430,9 @@ std::unique_ptr<FrontendAction> Action; - if (ModuleName) + if (Format == ScanningOutputFormat::P1689) + Action = std::make_unique<PreprocessOnlyAction>(); + else if (ModuleName) Action = std::make_unique<GetDependenciesByModuleNameAction>(*ModuleName); else Action = std::make_unique<ReadPCHAndPreprocessAction>();