diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-22 01:58:03 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-22 01:58:03 +0000 |
commit | adabbca569bd6c6dfe91773dea8cf7d14cb4cc5e (patch) | |
tree | acebd2a961092ae39a697367db6b573c0ff86322 /lib/Sema/SemaChecking.cpp | |
parent | 6b6fb4fe64684df35975fbe299d5085d70c5c178 (diff) |
Move -Wswitch-enum to -Wswitch
This matches GCC's documented (& actual) behavior. What Clang had implemented
as -Wswitch-enum was actually GCC's -Wswitch behavior. -Wswitch is on by
default (part of -Wall) and warns if a switch-over-enum, without a default
case, covers all enum values.
-Wswitch-enum, on the other hand, does not have the default clause and should
fire even in the presence of a default. This warning is off by default.
With this change the -Wswitch-enum flag is off-by-default in Clang but has no
functionality at the moment. I'll add that in a future commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions