[PATCH] D124621: CPP-2461 [Analyzer] Fix assumptions about const field with member-initializer

Marco Antognini via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 29 00:45:14 PDT 2022

mantognini created this revision.
Herald added subscribers: manas, steakhal, ASDenysPetrov, martong, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
Herald added a project: All.
mantognini added reviewers: dcoughlin, NoQ, r.stahl, xazax.hun.
mantognini published this revision for review.
mantognini added a comment.
Herald added subscribers: cfe-commits, rnkovacs.
Herald added a project: clang.

One thing I'm not sure about and couldn't easily find in the doc is how to reference in the commit message the bug (https://llvm.org/PR48534) this patch fixes. Is it good as is?

Essentially, having a default member initializer for a constant member
does not necessarily imply the member will have the given default value.

Fix PR48534.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124621.425800.patch
Type: text/x-patch
Size: 4318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220429/710478a1/attachment-0001.bin>

More information about the cfe-commits mailing list