[clang-tools-extra] r256637 - [clang-tidy] Don't use delegating constructors
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 30 03:39:30 PST 2015
Author: alexfh
Date: Wed Dec 30 05:39:30 2015
New Revision: 256637
URL: http://llvm.org/viewvc/llvm-project?rev=256637&view=rev
Log:
[clang-tidy] Don't use delegating constructors
Modified:
clang-tools-extra/trunk/clang-tidy/performance/UnnecessaryCopyInitialization.h
Modified: clang-tools-extra/trunk/clang-tidy/performance/UnnecessaryCopyInitialization.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/performance/UnnecessaryCopyInitialization.h?rev=256637&r1=256636&r2=256637&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/performance/UnnecessaryCopyInitialization.h (original)
+++ clang-tools-extra/trunk/clang-tidy/performance/UnnecessaryCopyInitialization.h Wed Dec 30 05:39:30 2015
@@ -26,7 +26,8 @@ namespace performance {
// const references, and const pointers to const.
class UnnecessaryCopyInitialization : public ClangTidyCheck {
public:
- using ClangTidyCheck::ClangTidyCheck;
+ UnnecessaryCopyInitialization(StringRef Name, ClangTidyContext *Context)
+ : ClangTidyCheck(Name, Context) {}
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
};
More information about the cfe-commits
mailing list