Go to file
David Blaikie 645ae0ce10 Add -Wswitch-enum-redundant-default.
This warning acts as the complement to the main -Wswitch-enum warning (which
warns whenever a switch over enum without a default doesn't cover all values of
 the enum) & has been an an-doc coding convention in LLVM and Clang in my
experience. The purpose is to ensure there's never a "dead" default in a
switch-over-enum because this would hide future -Wswitch-enum errors.

The name warning has a separate flag name so it can be disabled but it's grouped
under -Wswitch-enum & is on-by-default because of this.

The existing violations of this rule in test cases have had the warning disabled
& I've added a specific test for the new behavior (many negative cases already
exist in the same test file - and none regressed - so I didn't add more).

Reviewed by Ted Kremenek ( http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120116/051690.html )

llvm-svn: 148640
2012-01-21 18:12:07 +00:00
clang Add -Wswitch-enum-redundant-default. 2012-01-21 18:12:07 +00:00
compiler-rt Make the Android TSD workaround more reliable. 2012-01-19 13:57:45 +00:00
debuginfo-tests Testcase for r133065 2011-06-15 17:57:23 +00:00
libclc Update repository paths. 2012-01-08 22:31:18 +00:00
libcxx Fix .PHONY target to match new installheaders target. 2012-01-21 06:16:39 +00:00
libcxxabi One more small optimization: Where possible, for loops that do a search and then try to break out of the loop early, eliminate the attempt to break out of the loop after the last search. And with that, I'm declaring __dynamic_cast done. Though if anyone sees any problems, has suggestions for improvements, or wants to contribute some test cases, that is certainly welcome feedback. 2012-01-16 18:21:05 +00:00
lld First chunk of native object file reader/writer. The lld-core tool now reads YAML file, links, writes that out as native object format, then reads that native file, then writes the YAML to stdout. Thus the test suite tests both YAML reading/writing as well as native object file reading/writing. 2012-01-16 22:03:44 +00:00
lldb Added options to specify how many instructions before and after the frame 2012-01-21 05:10:20 +00:00
llvm Remove unreachable defaults from gtest. 2012-01-21 18:02:01 +00:00
polly Dependences: Simplify code 2012-01-21 02:38:27 +00:00