[PATCH] D72691: [clang-tidy] Match InitListExpr in modernize-use-default-member-init

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 04:00:18 PST 2020


malcolm.parsons created this revision.
malcolm.parsons added reviewers: aaron.ballman, alexfh, JonasToth.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.

modernize-use-default-member-init wasn't warning about redundant initialisers
when the initialiser was an InitListExpr.  Add initListExpr to the matcher.

Fixes: PR44439


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72691

Files:
  clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  clang-tools-extra/test/clang-tidy/checkers/modernize-use-default-member-init.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72691.237923.patch
Type: text/x-patch
Size: 10998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200114/cf57288a/attachment-0001.bin>


More information about the cfe-commits mailing list