From 46e82c3dcda14f0318c0a45f4ba461c1d7c4bc45 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Tue, 11 Aug 2015 12:59:22 +0000 Subject: [PATCH] Do not use inheriting constructors. llvm-svn: 244597 --- .../unittests/clang-tidy/IncludeInserterTest.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp b/clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp index 72b5fc31ced9..086fdca0ef60 100644 --- a/clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp @@ -19,7 +19,8 @@ namespace { class IncludeInserterCheckBase : public ClangTidyCheck { public: - using ClangTidyCheck::ClangTidyCheck; + IncludeInserterCheckBase(StringRef CheckName, ClangTidyContext *Context) + : ClangTidyCheck(CheckName, Context) {} void registerPPCallbacks(CompilerInstance &Compiler) override { Inserter.reset(new IncludeInserter(Compiler.getSourceManager(), Compiler.getLangOpts(), @@ -54,14 +55,16 @@ public: class NonSystemHeaderInserterCheck : public IncludeInserterCheckBase { public: - using IncludeInserterCheckBase::IncludeInserterCheckBase; + NonSystemHeaderInserterCheck(StringRef CheckName, ClangTidyContext *Context) + : IncludeInserterCheckBase(CheckName, Context) {} StringRef HeaderToInclude() const override { return "path/to/header.h"; } bool IsAngledInclude() const override { return false; } }; class CXXSystemIncludeInserterCheck : public IncludeInserterCheckBase { public: - using IncludeInserterCheckBase::IncludeInserterCheckBase; + CXXSystemIncludeInserterCheck(StringRef CheckName, ClangTidyContext *Context) + : IncludeInserterCheckBase(CheckName, Context) {} StringRef HeaderToInclude() const override { return "set"; } bool IsAngledInclude() const override { return true; } };