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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs