r350727 - Remove dependency-related arguments in clang-check.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 9 07:00:07 PST 2019


Author: alexfh
Date: Wed Jan  9 07:00:06 2019
New Revision: 350727

URL: http://llvm.org/viewvc/llvm-project?rev=350727&view=rev
Log:
Remove dependency-related arguments in clang-check.

This is the default behavior of clang tools, but clang-check overrides default
argument adjusters for some reason.

Modified:
    cfe/trunk/tools/clang-check/ClangCheck.cpp

Modified: cfe/trunk/tools/clang-check/ClangCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-check/ClangCheck.cpp?rev=350727&r1=350726&r2=350727&view=diff
==============================================================================
--- cfe/trunk/tools/clang-check/ClangCheck.cpp (original)
+++ cfe/trunk/tools/clang-check/ClangCheck.cpp Wed Jan  9 07:00:06 2019
@@ -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.




More information about the cfe-commits mailing list