[clang-tools-extra] r259214 - [clang-tidy] Don't use delegating constructors, since they are not supported by MSVC 2013

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 29 09:35:54 PST 2016


Author: alexfh
Date: Fri Jan 29 11:35:53 2016
New Revision: 259214

URL: http://llvm.org/viewvc/llvm-project?rev=259214&view=rev
Log:
[clang-tidy] Don't use delegating constructors, since they are not supported by MSVC 2013

Modified:
    clang-tools-extra/trunk/clang-tidy/performance/ImplicitCastInLoopCheck.h

Modified: clang-tools-extra/trunk/clang-tidy/performance/ImplicitCastInLoopCheck.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/performance/ImplicitCastInLoopCheck.h?rev=259214&r1=259213&r2=259214&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/performance/ImplicitCastInLoopCheck.h (original)
+++ clang-tools-extra/trunk/clang-tidy/performance/ImplicitCastInLoopCheck.h Fri Jan 29 11:35:53 2016
@@ -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,




More information about the cfe-commits mailing list