[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 10:44:29 PDT 2017
rnk updated this revision to Diff 91749.
rnk added a comment.
- Test that explicit casts suppress the warning
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.91749.patch
Type: text/x-patch
Size: 8398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170314/f108f6a4/attachment-0001.bin>
More information about the cfe-commits
mailing list