diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-12-05 22:52:07 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-12-05 22:52:07 +0000 |
| commit | 8840fa855077e6be0897260d355c29e52bcbf27d (patch) | |
| tree | e3981dfc35119aa8aed12d92bd830e63092cd091 /lib/CodeGen/CGExprAgg.cpp | |
| parent | c3ed6328a2332dd84a476a2a1ba2fcafd741ed76 (diff) | |
| download | clang-8840fa855077e6be0897260d355c29e52bcbf27d.tar.gz clang-8840fa855077e6be0897260d355c29e52bcbf27d.tar.bz2 clang-8840fa855077e6be0897260d355c29e52bcbf27d.tar.xz | |
Allow the warning 'case value not in enumerated type' to be silenced with
the following pattern.
If 'case' expression refers to a static const variable of the correct enum
type, then we count this as a sufficient declaration of intent by the user,
so we silence the warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions
