From 7e7b13d3b15e5870a86d1ef50b952d6be4e1c178 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 10 Sep 2018 22:57:26 +0000 Subject: [PATCH] clang-check: rename the local FixItAction Resolve the ambiguity in the FixItAction definition by renaming the type. With Xcode 9.2, you would fail to build this with: llvm/tools/clang/tools/clang-check/ClangCheck.cpp:183:48: error: reference to 'FixItAction' is ambiguous FrontendFactory = newFrontendActionFactory(); ^ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341877 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-check/ClangCheck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/clang-check/ClangCheck.cpp b/tools/clang-check/ClangCheck.cpp index f00e9a3df0..3e3d6763c1 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); @@ -180,7 +180,7 @@ int main(int argc, const char **argv) { if (Analyze) FrontendFactory = newFrontendActionFactory(); else if (Fixit) - FrontendFactory = newFrontendActionFactory(); + FrontendFactory = newFrontendActionFactory(); else FrontendFactory = newFrontendActionFactory(&CheckFactory); -- 2.50.1