This is an archive of the discontinued LLVM Phabricator instance.

[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
when the initialiser was an InitListExpr. Add initListExpr to the matcher.

Fixes: PR44439

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2020, 3:53 AM
This revision is now accepted and ready to land.Jan 14 2020, 6:56 AM
This revision was automatically updated to reflect the committed changes.