Skip to content
  1. Aug 09, 2011
  2. Aug 08, 2011
  3. Aug 07, 2011
  4. Aug 06, 2011
  5. Aug 05, 2011
    • Ted Kremenek's avatar
      Make test/SemaObjC/qualified-protocol-method-conflicts.m always fail and mark... · 9dd9b882
      Ted Kremenek authored
      Make test/SemaObjC/qualified-protocol-method-conflicts.m always fail and mark it XFAIL.  This is a stop gap until the output of the test is deterministic.
      
      llvm-svn: 136984
      9dd9b882
    • Roman Divacky's avatar
      30097b7c
    • Chandler Carruth's avatar
      Flesh out the -Warray-bounds detection of C89 tail-padded one-element · 28389f0c
      Chandler Carruth authored
      arrays. This now suppresses the warning only in the case of
      a one-element array as the last field in a struct where the array size
      is a literal '1' rather than any macro expansion or template parameter.
      
      This doesn't distinguish between the language standard in use to allow
      code which dates from C89 era to compile without the warning even in C99
      and C++ builds. We could add a separate warning (under a different flag)
      with fixit hints to switch to a flexible array, but its not clear that
      this would be desirable. Much of the code using this idiom is striving
      for maximum portability.
      
      Tests were also fleshed out a bit, and the diagnostic itself tweaked to
      be more pretty w.r.t. single elment arrays. This is more ugly than
      I would like due to APInt's not being supported by the diagnostic
      rendering engine.
      
      A pseudo-patch for this was proposed by Nicola Gigante, but I reworked
      it both for several correctness issues and for code style.
      
      Sorry this was so long in coming.
      
      llvm-svn: 136965
      28389f0c
    • Chandler Carruth's avatar
      Finally getting around to re-working this to more accurately white-list · 126b1554
      Chandler Carruth authored
      1-element character arrays which are serving as flexible arrays. This is
      the initial step, which is to restrict the 1-element array whitelist to
      arrays that are member declarations. I'll refine it from here based on
      the proposed patch.
      
      llvm-svn: 136964
      126b1554
Loading