aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-22 01:58:03 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-22 01:58:03 +0000
commit29e7d608807d3da5e68a6420fbbe4a757cc01a03 (patch)
tree3fa7714f210b137d1d043381df9ad73f44b080fd /llvm/lib/Target/CppBackend/CPPBackend.cpp
parent1a56ee37985f26abb0a4af59dd24479b5e58daf2 (diff)
downloadllvm-29e7d608807d3da5e68a6420fbbe4a757cc01a03.zip
llvm-29e7d608807d3da5e68a6420fbbe4a757cc01a03.tar.gz
llvm-29e7d608807d3da5e68a6420fbbe4a757cc01a03.tar.bz2
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. llvm-svn: 148648
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
0 files changed, 0 insertions, 0 deletions