This is the default behavior of clang tools, but clang-check overrides default
argument adjusters for some reason.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350727
91177308-0d34-0410-b5e6-
96231b3b80d8
// Clear adjusters because -fsyntax-only is inserted by the default chain.
Tool.clearArgumentsAdjusters();
Tool.appendArgumentsAdjuster(getClangStripOutputAdjuster());
+ Tool.appendArgumentsAdjuster(getClangStripDependencyFileAdjuster());
// Running the analyzer requires --analyze. Other modes can work with the
// -fsyntax-only option.