[clang][deps] Move injection of `-Wno-error` from `clang-scan-deps` to `DependencySca...
authorJan Svoboda <jan_svoboda@apple.com>
Mon, 14 Jun 2021 10:09:54 +0000 (12:09 +0200)
committerJan Svoboda <jan_svoboda@apple.com>
Mon, 14 Jun 2021 10:23:33 +0000 (12:23 +0200)
commitcf7d9704688db746b26d739a6e154ad54b6b676e
tree62e45b00fa0d3d40f6d961522df7e042a61935a0
parentd8bab69ead22a10dc4cdb2e36f6ea6fdfe774e2e
[clang][deps] Move injection of `-Wno-error` from `clang-scan-deps` to `DependencyScanning` library

This moves another piece of logic specific to `clang-scan-deps` into the `DependencyScanning` library. This makes it easier to check how the original command-line looked like in the library and will enable the library to stop inventing `-Wno-error` for modular dependencies (see D104036).

Reviewed By: arphaman

Differential Revision: https://reviews.llvm.org/D104031
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
clang/tools/clang-scan-deps/ClangScanDeps.cpp