[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 08:50:09 PST 2016

malcolm.parsons planned changes to this revision.
malcolm.parsons added inline comments.

Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:21
+static StringRef getValueInit(const CXXCtorInitializer *Init) {
+  switch (Init->getInit()->getType()->getScalarTypeKind()) {
alexfh wrote:
> The function name doesn't make it clear that the value is returned for zero-initialization.


More information about the cfe-commits mailing list