Skip to content
  1. Jan 24, 2012
  2. Jan 23, 2012
  3. Jan 22, 2012
    • David Blaikie's avatar
      Fix -Wswitch to warn about out of bounds enum cases even when there's a default · e476f979
      David Blaikie authored
      For consistency with GCC & reasonable sanity. The FIXME suggests that the
      original author was perhaps using the default check for some other purpose,
      not realizing the more obvious limitation/false-negatives it creates, but this
      doesn't seem to produce any regressions & fixes the included test.
      
      llvm-svn: 148649
      e476f979
    • David Blaikie's avatar
      Move -Wswitch-enum to -Wswitch · 29e7d608
      David Blaikie authored
      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
      29e7d608
    • Francois Pichet's avatar
      In Microsoft Mode, disable the C++11 strict integral conversion rules for... · 2056a69c
      Francois Pichet authored
      In Microsoft Mode, disable the C++11 strict integral conversion rules for enumerator that were introduced with r148439. Otherwise MSVC headers won't compile in C++ 11 mode.
      
      llvm-svn: 148642
      2056a69c
  4. Jan 21, 2012
Loading