[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 20 02:26:29 PST 2016
malcolm.parsons added inline comments.
================
Comment at: clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:33-34
+ case Type::STK_Floating:
+ case Type::STK_IntegralComplex:
+ case Type::STK_FloatingComplex:
+ return "0.0";
----------------
aaron.ballman wrote:
> Do these require a literal suffix to avoid conversion?
I don't think so, but using 0.0 for an integral complex value doesn't look right.
https://reviews.llvm.org/D26750
More information about the cfe-commits
mailing list