In this patch the dependency scanner starts using proper DiagnosticOptions parsed from the actual TU command-line in order to mimic what the actual compiler would do. The actual functionality will be enabled and tested in follow-up patches. (This split is necessary to avoid temporary regression.)
Depends on D108976.
clang-tidy: error: no member named 'setDiagnosticOptions' in 'clang::tooling::ToolInvocation' [clang-diagnostic-error]
not useful