[clang-tools-extra] r245046 - [clang-tidy] Don't use delegating constructors.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 14 06:24:10 PDT 2015


Author: alexfh
Date: Fri Aug 14 08:23:55 2015
New Revision: 245046

URL: http://llvm.org/viewvc/llvm-project?rev=245046&view=rev
Log:
[clang-tidy] Don't use delegating constructors.

Modified:
    clang-tools-extra/trunk/unittests/clang-tidy/IncludeInserterTest.cpp

Modified: clang-tools-extra/trunk/unittests/clang-tidy/IncludeInserterTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/IncludeInserterTest.cpp?rev=245046&r1=245045&r2=245046&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/IncludeInserterTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/IncludeInserterTest.cpp Fri Aug 14 08:23:55 2015
@@ -73,7 +73,8 @@ public:
 
 class CSystemIncludeInserterCheck : public IncludeInserterCheckBase {
 public:
-  using IncludeInserterCheckBase::IncludeInserterCheckBase;
+  CSystemIncludeInserterCheck(StringRef CheckName, ClangTidyContext *Context)
+      : IncludeInserterCheckBase(CheckName, Context) {}
   StringRef HeaderToInclude() const override { return "stdlib.h"; }
   bool IsAngledInclude() const override { return true; }
 };
@@ -492,4 +493,4 @@ void foo() {
 } // namespace tidy
 } // namespace clang
 
-#endif
\ No newline at end of file
+#endif




More information about the cfe-commits mailing list