[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check
Malcolm Parsons via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 8 10:34:41 PST 2016
malcolm.parsons added a comment.
In https://reviews.llvm.org/D26750#617316, @Eugene.Zelenko wrote:
> How does check handle bit fields?
There is no warning for bit fields.
I don't think the C++17 bit field initializer proposal has been accepted yet.
> Will be also good idea to add test case for bit fields.
There is a test:
struct NegativeBitField
{
NegativeBitField() : i(6) {}
int i : 5;
};
https://reviews.llvm.org/D26750
More information about the cfe-commits
mailing list