[llvm-bugs] [Bug 33575] New: Make Wmicrosoft-enum-value useful
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 23 13:40:06 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33575
Bug ID: 33575
Summary: Make Wmicrosoft-enum-value useful
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org
enums in MS mode are signed, but unsigned elsewhere. So if you have an enum
with the highest bit set, it will be negative in MS mode but positive
elsewhere.
Wmicrosoft-enum-value currently flags those, but having these enums is very
common in practice, and only a problem when they are compared to 0.
So we should move the warning to comparison time.
https://bugs.chromium.org/p/chromium/issues/detail?id=621097#c2 has half a
patch for that.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170623/550f11b8/attachment-0001.html>
More information about the llvm-bugs
mailing list