[PATCH] D26118: [clang-tidy] Change readability-redundant-member-init to get base type from constructor
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 29 08:49:31 PDT 2016
malcolm.parsons created this revision.
malcolm.parsons added reviewers: aaron.ballman, Eugene.Zelenko.
malcolm.parsons added a subscriber: cfe-commits.
Fixes PR30835
https://reviews.llvm.org/D26118
Files:
clang-tidy/readability/RedundantMemberInitCheck.cpp
Index: clang-tidy/readability/RedundantMemberInitCheck.cpp
===================================================================
--- clang-tidy/readability/RedundantMemberInitCheck.cpp
+++ clang-tidy/readability/RedundantMemberInitCheck.cpp
@@ -54,7 +54,7 @@
} else {
diag(Init->getSourceLocation(),
"initializer for base class %0 is redundant")
- << Init->getTypeSourceInfo()->getType()
+ << Construct->getType()
<< FixItHint::CreateRemoval(Init->getSourceRange());
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26118.76309.patch
Type: text/x-patch
Size: 530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161029/51a75eb0/attachment.bin>
More information about the cfe-commits
mailing list