efac8da4cfa49799d5fdbc9d10b0e9f9a53ff6c8 |
|
07-Apr-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Sema: Don't crash when trying to emit a warning for a duplicate value in an invalid enum. Fixes PR15693. A null check on a pointer returned from cast<> is a very dubious construct, do we have a checker for this somewhere? git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178975 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-duplicate-enum.c
|
a734a0eab27678262bea07786b6ff30d5c7a6356 |
|
22-Dec-2012 |
Ted Kremenek <kremenek@apple.com> |
Add back -Wduplicate-enum which I mistakenly removed. This was removed with -Wunique-enum, which is still removed. The corresponding thread on cfe-comments for that warning is here: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024224.html If we get specific user feedback for -Wduplicate-enum we can evaluate whether or not to keep it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-duplicate-enum.c
|
43f8c40b05482894d94a8779a5ccd0f9a35420f3 |
|
18-Sep-2012 |
Ted Kremenek <kremenek@apple.com> |
Per discussion on cfe-dev, remove -Wunique-enums entirely. There is no compelling argument that this is a generally useful warning, and imposes a strong stylistic argument on code beyond what it was intended to find warnings in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164083 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-duplicate-enum.c
|
9f6419f96d6cad3f7bd39f444cfc784ccbbdcd65 |
|
30-Aug-2012 |
Richard Trieu <rtrieu@google.com> |
Add -Wduplicate-enum warning. Clang will emit this warning when an implicitly initiated enum constant has the same value as another enum constant. For instance: enum test { A, B, C = -1, D, E = 1 }; Clang will warn that: A and D both have value 0 B and E both have value 1 A few exceptions are made to keep the noise down. Enum constants which are initialized to another enum constant, or an enum constant plus or minus 1 will not trigger this warning. Also, anonymous enums are not checked. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-duplicate-enum.c
|