Skip to content
  1. Aug 30, 2012
  2. Aug 29, 2012
  3. Aug 25, 2012
  4. Aug 24, 2012
  5. Aug 22, 2012
  6. Aug 21, 2012
  7. Aug 16, 2012
  8. Aug 11, 2012
  9. Aug 09, 2012
  10. Aug 08, 2012
  11. Aug 07, 2012
  12. Aug 04, 2012
  13. Aug 02, 2012
  14. Jul 30, 2012
  15. Jul 28, 2012
  16. Jul 27, 2012
  17. Jul 25, 2012
  18. Jul 23, 2012
  19. Jul 19, 2012
  20. Jul 17, 2012
    • Jordan Rose's avatar
      -Wobjc-literal-compare: don't warn when comparing against nil. · 63ffaa8c
      Jordan Rose authored
      Checks against nil often appear as guards in macros, and comparing
      Objective-C literals to nil has well-defined behavior (if tautological).
      
      On OS X, 'nil' has not been typed as 'id' since 10.6 (possibly earlier),
      so the warning was already not firing, but other runtimes continue to use
      ((id)0) or some variant. This change accepts comparisons to any null pointer;
      to keep it simple, it looks through all casts (not just casts to 'id').
      
      PR13276
      
      llvm-svn: 160379
      63ffaa8c
    • Jordan Rose's avatar
      Add -Wobjc-string-compare under -Wobjc-literal-compare. · ea70bf71
      Jordan Rose authored
      Suggested by Ted, since string literal comparison is at least slightly more
      sensible than comparison of runtime literals. (Ambiguous language on
      developer.apple.com implies that strings are guaranteed to be uniqued within
      a translation unit and possibly across a linked binary.)
      
      llvm-svn: 160378
      ea70bf71
    • Jordan Rose's avatar
      Now that -Wobjc-literal-compare is a warning, put the fixit on a note. · 7660f78f
      Jordan Rose authored
      Recovering as if the user had actually called -isEqual: is a bit too far from
      the semantics of the program as written, /even though/ it's probably what they
      intended.
      
      llvm-svn: 160377
      7660f78f
  21. Jul 09, 2012
  22. Jul 06, 2012
  23. Jul 04, 2012
Loading