From: Manuel Klimek Date: Tue, 11 Aug 2015 12:59:22 +0000 (+0000) Subject: Do not use inheriting constructors. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46e82c3dcda14f0318c0a45f4ba461c1d7c4bc45;p=platform%2Fupstream%2Fllvm.git Do not use inheriting constructors. llvm-svn: 244597 --- diff --git a/clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp b/clang-tools-extra/unittests/clang-tidy/IncludeInserterTest.cpp index 72b5fc3..086fdca 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; } };