Skip to content
  1. May 03, 2012
    • Richard Smith's avatar
      Add -Wimplicit-fallthrough warning flag, which warns on fallthrough between · 84837d5b
      Richard Smith authored
      cases in switch statements. Also add a [[clang::fallthrough]] attribute, which
      can be used to suppress the warning in the case of intentional fallthrough.
      
      Patch by Alexander Kornienko!
      
      The handling of C++11 attribute namespaces in this patch is temporary, and will
      be replaced with a cleaner mechanism in a subsequent patch.
      
      llvm-svn: 156086
      84837d5b
    • Fariborz Jahanian's avatar
      objective-c: warn for properties being default synthesized · d5f34f9f
      Fariborz Jahanian authored
      under -Wobjc-missing-property-synthesis which must be
      opted-in. // rdar://11295716
      
      llvm-svn: 156078
      d5f34f9f
    • Richard Trieu's avatar
      Fix a note without a SourceLocation. · 2cdcf823
      Richard Trieu authored
      #define TEST int y; int x = y;
      void foo() {
        TEST
      }
      
      -Wuninitialized gives this warning:
      invalid-loc.cc:4:3: warning: variable 'y' is uninitialized when used here
            [-Wuninitialized]
        TEST
        ^~~~
      invalid-loc.cc:2:29: note: expanded from macro 'TEST'
      #define TEST int y; int x = y;
                                  ^
      note: initialize the variable 'y' to silence this warning
      1 warning generated.
      
      The second note lacks filename, line number, and code snippet.  This change
      will remove the fixit and only point to variable declaration.
      
      invalid-loc.cc:4:3: warning: variable 'y' is uninitialized when used here
            [-Wuninitialized]
        TEST
        ^~~~
      invalid-loc.cc:2:29: note: expanded from macro 'TEST'
      #define TEST int y; int x = y;
                                  ^
      invalid-loc.cc:4:3: note: variable 'y' is declared here
        TEST
        ^
      invalid-loc.cc:2:14: note: expanded from macro 'TEST'
      #define TEST int y; int x = y;
                   ^
      1 warning generated.
      
      llvm-svn: 156045
      2cdcf823
    • Richard Smith's avatar
      Revert most of r154844, which was disabled in r155975. Keep around the · 2331bbfb
      Richard Smith authored
      refactorings in that revision, and some of the subsequent bugfixes, which
      seem to be relevant even without delayed exception specification parsing.
      
      llvm-svn: 156031
      2331bbfb
    • DeLesley Hutchins's avatar
  2. May 02, 2012
  3. May 01, 2012
  4. Apr 30, 2012
  5. Apr 29, 2012
  6. Apr 28, 2012
Loading