From 49fe4037a1e696b444b8edc81ec849b295088939 Mon Sep 17 00:00:00 2001 From: Malcolm Parsons Date: Tue, 15 Nov 2016 17:49:00 +0000 Subject: [clang-tidy] Change readability-redundant-member-init to get base type from constructor Summary: Fixes PR30835 Reviewers: alexfh, hokein, aaron.ballman Subscribers: Prazek, cfe-commits Differential Revision: https://reviews.llvm.org/D26118 llvm-svn: 286990 --- clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp') diff --git a/clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp b/clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp index 26003e6cf44..8fe67c1cd69 100644 --- a/clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp @@ -54,7 +54,7 @@ void RedundantMemberInitCheck::check(const MatchFinder::MatchResult &Result) { } else { diag(Init->getSourceLocation(), "initializer for base class %0 is redundant") - << Init->getTypeSourceInfo()->getType() + << Construct->getType() << FixItHint::CreateRemoval(Init->getSourceRange()); } } -- cgit v1.2.3