blob: 1ff08f97d416b46122c31881453d09ddcbdbc6c1 [file] [log] [blame]
// RUN: %check_clang_tidy %s modernize-use-default-member-init %t -- -- -std=c++2a
struct PositiveBitField
{
PositiveBitField() : i(6) {}
// CHECK-FIXES: PositiveBitField() {}
int i : 5;
// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use default member initializer for 'i' [modernize-use-default-member-init]
// CHECK-FIXES: int i : 5{6};
};