modernize-use-default-member-init wasn't warning about redundant initialisers
when the initialiser was an InitListExpr. Add initListExpr to the matcher.
Fixes: PR44439
Paths
| Differential D72691
[clang-tidy] Match InitListExpr in modernize-use-default-member-init ClosedPublic Authored by malcolm.parsons on Jan 14 2020, 3:53 AM.
Details Summary modernize-use-default-member-init wasn't warning about redundant initialisers Fixes: PR44439
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 14 2020, 6:56 AM Closed by commit rG9738c757bd9b: [clang-tidy] Match InitListExpr in modernize-use-default-member-init (authored by malcolm.parsons). · Explain WhyJan 14 2020, 7:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 237975 clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize-use-default-member-init.cpp
|