summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-15 17:49:00 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-15 17:49:00 +0000
commit49fe4037a1e696b444b8edc81ec849b295088939 (patch)
treef0c24c72d921516b71e0e08aa011282d444887f1 /clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp
parent73d1d35d2199b2bc9a9372a6795ca3fa95a1d0fd (diff)
downloadbcm5719-llvm-49fe4037a1e696b444b8edc81ec849b295088939.tar.gz
bcm5719-llvm-49fe4037a1e696b444b8edc81ec849b295088939.zip
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/readability/RedundantMemberInitCheck.cpp2
1 files changed, 1 insertions, 1 deletions
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());
}
}
OpenPOWER on IntegriCloud