]> granicus.if.org Git - clang/commitdiff
Remove dependency-related arguments in clang-check.
authorAlexander Kornienko <alexfh@google.com>
Wed, 9 Jan 2019 15:00:06 +0000 (15:00 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 9 Jan 2019 15:00:06 +0000 (15:00 +0000)
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

tools/clang-check/ClangCheck.cpp

index 3e3d6763c183f605b016868b7c93f953a6f3d048..66d865b749a107f574d647cd7df06ffa5f4495ac 100644 (file)
@@ -167,6 +167,7 @@ int main(int argc, const char **argv) {
   // 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.