diff options
Diffstat (limited to 'tools/clang-check/ClangCheck.cpp')
-rw-r--r-- | tools/clang-check/ClangCheck.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/clang-check/ClangCheck.cpp b/tools/clang-check/ClangCheck.cpp index f00e9a3df0ade..66d865b749a10 100644 --- a/tools/clang-check/ClangCheck.cpp +++ b/tools/clang-check/ClangCheck.cpp @@ -122,7 +122,7 @@ public: /// Subclasses \c clang::FixItAction so that we can install the custom /// \c FixItRewriter. -class FixItAction : public clang::FixItAction { +class ClangCheckFixItAction : public clang::FixItAction { public: bool BeginSourceFileAction(clang::CompilerInstance& CI) override { FixItOpts.reset(new FixItOptions); @@ -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. @@ -180,7 +181,7 @@ int main(int argc, const char **argv) { if (Analyze) FrontendFactory = newFrontendActionFactory<clang::ento::AnalysisAction>(); else if (Fixit) - FrontendFactory = newFrontendActionFactory<FixItAction>(); + FrontendFactory = newFrontendActionFactory<ClangCheckFixItAction>(); else FrontendFactory = newFrontendActionFactory(&CheckFactory); |