]> granicus.if.org Git - clang/commit
Improve -Wswitch-enum diagnostic message.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 24 Jan 2012 04:56:25 +0000 (04:56 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 24 Jan 2012 04:56:25 +0000 (04:56 +0000)
commite1d82deb6839bf972aa6301da40f06e8926f0af5
treee6610dd2659ccddc41b9e34f79cde536a078de82
parent23661d3e348c5f44ae89b6848bbc331829bb46f2
Improve -Wswitch-enum diagnostic message.

Changing wording to include the word "explicitly" (as in "enumeration value ...
not /explicitly/ handled by switch"), as suggested by Richard Smith.

Also, now that the diagnostic text differs between -Wswitch and -Wswitch-enum,
I've simplified the test cases a bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148781 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/switch-enum.c [deleted file]
test/Sema/switch.c