@@ -52,17 +52,17 @@ struct address
52
52
53
53
struct person
54
54
{
55
- age m_age{};
56
- name m_name{};
57
- country m_country{};
55
+ age m_age{}; // NOLINT(readability-redundant-member-init)
56
+ name m_name{}; // NOLINT(readability-redundant-member-init)
57
+ country m_country{}; // NOLINT(readability-redundant-member-init)
58
58
person () = default ;
59
59
person (const age& a, name n, const country& c) : m_age(a), m_name(std::move(n)), m_country(c) {}
60
60
};
61
61
62
62
struct contact
63
63
{
64
- person m_person{};
65
- address m_address{};
64
+ person m_person{}; // NOLINT(readability-redundant-member-init)
65
+ address m_address{}; // NOLINT(readability-redundant-member-init)
66
66
contact () = default ;
67
67
contact (person p, address a) : m_person(std::move(p)), m_address(std::move(a)) {}
68
68
};
@@ -71,9 +71,9 @@ enum class book_id : std::uint64_t;
71
71
72
72
struct contact_book
73
73
{
74
- name m_book_name{};
74
+ name m_book_name{}; // NOLINT(readability-redundant-member-init)
75
75
book_id m_book_id{};
76
- std::vector<contact> m_contacts{};
76
+ std::vector<contact> m_contacts{}; // NOLINT(readability-redundant-member-init)
77
77
contact_book () = default ;
78
78
contact_book (name n, book_id i, std::vector<contact> c) : m_book_name(std::move(n)), m_book_id(i), m_contacts(std::move(c)) {}
79
79
};
@@ -343,7 +343,7 @@ namespace udt
343
343
{
344
344
struct legacy_type
345
345
{
346
- std::string number{};
346
+ std::string number{}; // NOLINT(readability-redundant-member-init)
347
347
legacy_type () = default ;
348
348
legacy_type (std::string n) : number(std::move(n)) {}
349
349
};
@@ -616,7 +616,7 @@ struct small_pod
616
616
617
617
struct non_pod
618
618
{
619
- std::string s{};
619
+ std::string s{}; // NOLINT(readability-redundant-member-init)
620
620
non_pod () = default ;
621
621
non_pod (std::string S) : s(std::move(S)) {}
622
622
};
0 commit comments