[clang][deps] NFC: Expose more flexible version of `Worker::computeDependencies()`
authorJan Svoboda <jan_svoboda@apple.com>
Thu, 29 Sep 2022 18:00:42 +0000 (11:00 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 29 Sep 2022 18:29:53 +0000 (11:29 -0700)
commit13921262cae0e7346e41875c1850d8861be0488e
tree846b0c4a31330e501f1cee69526e6e7cb7f8d8f0
parent29e0435ac04957861aa1f85d41291c8b19db0122
[clang][deps] NFC: Expose more flexible version of `Worker::computeDependencies()`

This patch adds new member function to `DependencyScanningWorker` that allows clients to pass custom `DiagnosticConsumer`, and returns `bool`.

This provides more flexibility compared to the existing version that automatically stringifies diagnostics and returns them in `llvm::Error`.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D134838
clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp