Initialising a pointer from nullptr involves an implicit cast.
Ignore it after getting initialiser from InitListExpr.
Fixes: PR44440
| Paths 
 |  Differential  D72630  
[clang-tidy] Ignore implicit casts in modernize-use-default-member-init ClosedPublic Authored by malcolm.parsons on Jan 13 2020, 9:13 AM. 
Details Summary Initialising a pointer from nullptr involves an implicit cast. Fixes: PR44440 
Diff Detail 
 Event TimelineComment Actions LGTM in general. The linked bug report misses a "4" --> PR44440, so please the description for that. 
 This revision is now accepted and ready to land.Jan 13 2020, 1:23 PM malcolm.parsons added inline comments. 
 Closed by commit rG45924eb46716: [clang-tidy] Ignore implicit casts in modernize-use-default-member-init (authored by malcolm.parsons).  ·  Explain WhyJan 14 2020, 2:13 AM This revision was automatically updated to reflect the committed changes. malcolm.parsons marked an inline comment as done. Comment Actions It seems that while this commit got pushed to GitHub, it's not actually part of master or any other branches. Comment Actions 
 This was my first push to llvm's GitHub repository, so I may have done something wrong. The changeset looks like it's in master to me: $ git branch -r --contains 45924eb origin/HEAD -> origin/master origin/master origin/release/10.x Comment Actions Ah, you're right, it's there. The reason for my comment was http://lists.llvm.org/pipermail/llvm-branch-commits/2020-January/013555.html but it seems it was also successfully pushed to master. Sorry for the noise. 
Revision Contents 
 
Diff 237890 clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
 clang-tools-extra/test/clang-tidy/checkers/modernize-use-default-member-init.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
are those related to this patch?