From d0d8878fb6418dfa666a4a33e64b002d750389fb Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 29 Jan 2016 17:35:53 +0000 Subject: [PATCH] [clang-tidy] Don't use delegating constructors, since they are not supported by MSVC 2013 llvm-svn: 259214 --- .../clang-tidy/performance/ImplicitCastInLoopCheck.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h b/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h index 5131cf405b1a..913ee96d574f 100644 --- a/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h +++ b/clang-tools-extra/clang-tidy/performance/ImplicitCastInLoopCheck.h @@ -21,9 +21,10 @@ namespace performance { // isn't any implicit conversion). class ImplicitCastInLoopCheck : public ClangTidyCheck { public: - using ClangTidyCheck::ClangTidyCheck; - void registerMatchers(ast_matchers::MatchFinder *Finder) override; - void check(const ast_matchers::MatchFinder::MatchResult &Result) override; + ImplicitCastInLoopCheck(StringRef Name, ClangTidyContext *Context) + : ClangTidyCheck(Name, Context) {} + void registerMatchers(ast_matchers::MatchFinder *Finder) override; + void check(const ast_matchers::MatchFinder::MatchResult &Result) override; private: void ReportAndFix(const ASTContext *Context, const VarDecl *VD,