[PATCH] D30923: Warn on enum assignment to bitfields that can't fit all values

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 14 09:51:47 PDT 2017


rnk updated this revision to Diff 91741.
rnk added a comment.

- Beef up test as Nico suggests
- Add two notes, one to change the bitfield signedness, one to indicate the required bitwidth


https://reviews.llvm.org/D30923

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaChecking.cpp
  test/SemaCXX/warn-bitfield-enum-conversion.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30923.91741.patch
Type: text/x-patch
Size: 8250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170314/f328fd50/attachment-0001.bin>


More information about the cfe-commits mailing list