<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm5719-llvm/clang/test/SemaObjC/objc-literal-comparison.m, branch meklort-10.0.0</title>
<subtitle>Project Ortega BCM5719 LLVM</subtitle>
<id>https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.0</id>
<link rel='self' href='https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.0'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/'/>
<updated>2014-10-28T18:28:16+00:00</updated>
<entry>
<title>Objective-C. revert patch for rdar://17554063.</title>
<updated>2014-10-28T18:28:16+00:00</updated>
<author>
<name>Fariborz Jahanian</name>
<email>fjahanian@apple.com</email>
</author>
<published>2014-10-28T18:28:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=9ad94aa280619feaed083fd35f9a50c7e076a7b0'/>
<id>urn:sha1:9ad94aa280619feaed083fd35f9a50c7e076a7b0</id>
<content type='text'>
llvm-svn: 220812
</content>
</entry>
<entry>
<title>Objective-C ARC. Use of non-retain/autorelease API</title>
<updated>2014-08-08T17:31:14+00:00</updated>
<author>
<name>Fariborz Jahanian</name>
<email>fjahanian@apple.com</email>
</author>
<published>2014-08-08T17:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=495bc3f5f6a1924dddfeb3c090520175e637af4d'/>
<id>urn:sha1:495bc3f5f6a1924dddfeb3c090520175e637af4d</id>
<content type='text'>
for building Objective-C array literals in ARC
mode. rdar://17554063

llvm-svn: 215232
</content>
</entry>
<entry>
<title>Objective-C arc. Switch the Objective-C dictionary literal in ARC mode</title>
<updated>2014-08-07T20:57:35+00:00</updated>
<author>
<name>Fariborz Jahanian</name>
<email>fjahanian@apple.com</email>
</author>
<published>2014-08-07T20:57:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=d45e7cec42aeef87eef76996186597b9a5663de8'/>
<id>urn:sha1:d45e7cec42aeef87eef76996186597b9a5663de8</id>
<content type='text'>
to use non-retain/autorelease API variants of ObjC objects. wip.
rdar://17554063

llvm-svn: 215146
</content>
</entry>
<entry>
<title>Objective-C ARC. More code for Objective-C's</title>
<updated>2014-08-06T23:40:31+00:00</updated>
<author>
<name>Fariborz Jahanian</name>
<email>fjahanian@apple.com</email>
</author>
<published>2014-08-06T23:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=2a25dba153dd8a84149cbfaa2e106373f016b2b1'/>
<id>urn:sha1:2a25dba153dd8a84149cbfaa2e106373f016b2b1</id>
<content type='text'>
new APIs for literals. nfc. wip. rdar://17554063

llvm-svn: 215043
</content>
</entry>
<entry>
<title>Sema: Unnest early exit and remove an unnecessary bad cast.</title>
<updated>2013-02-15T15:17:50+00:00</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2013-02-15T15:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=25c0510690ddd354a550096abe7370bd8079defb'/>
<id>urn:sha1:25c0510690ddd354a550096abe7370bd8079defb</id>
<content type='text'>
cast&lt;ObjCObjectPointerType&gt; doesn't look through sugar, getAs does.
Fixes PR15257.

llvm-svn: 175272
</content>
</entry>
<entry>
<title>-Wobjc-literal-compare: look through implicit casts.</title>
<updated>2012-11-09T23:55:21+00:00</updated>
<author>
<name>Jordan Rose</name>
<email>jordan_rose@apple.com</email>
</author>
<published>2012-11-09T23:55:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=e2028139e9abab88a62b87615b1b9c1d362efcdb'/>
<id>urn:sha1:e2028139e9abab88a62b87615b1b9c1d362efcdb</id>
<content type='text'>
This warning was failing to fire under ARC because of the implicit
lifetime casts added around the object literal expression.

&lt;rdar://problem/11300873&gt;, again.

llvm-svn: 167648
</content>
</entry>
<entry>
<title>-Wobjc-literal-compare: don't warn when comparing against nil.</title>
<updated>2012-07-17T17:46:48+00:00</updated>
<author>
<name>Jordan Rose</name>
<email>jordan_rose@apple.com</email>
</author>
<published>2012-07-17T17:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=63ffaa8c18f1caabc6820505ba1ce960252c5188'/>
<id>urn:sha1:63ffaa8c18f1caabc6820505ba1ce960252c5188</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Add -Wobjc-string-compare under -Wobjc-literal-compare.</title>
<updated>2012-07-17T17:46:44+00:00</updated>
<author>
<name>Jordan Rose</name>
<email>jordan_rose@apple.com</email>
</author>
<published>2012-07-17T17:46:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=ea70bf71547b9c8d96735707541e55fe117e23b5'/>
<id>urn:sha1:ea70bf71547b9c8d96735707541e55fe117e23b5</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Now that -Wobjc-literal-compare is a warning, put the fixit on a note.</title>
<updated>2012-07-17T17:46:40+00:00</updated>
<author>
<name>Jordan Rose</name>
<email>jordan_rose@apple.com</email>
</author>
<published>2012-07-17T17:46:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=7660f78fb95b3e1706019dce7cd4e845f262c018'/>
<id>urn:sha1:7660f78fb95b3e1706019dce7cd4e845f262c018</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Downgrade the "direct comparison" error for ObjC literals to a warning.</title>
<updated>2012-07-09T16:54:44+00:00</updated>
<author>
<name>Jordan Rose</name>
<email>jordan_rose@apple.com</email>
</author>
<published>2012-07-09T16:54:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=f9198030015f05e2463f15064d6ff3cc627c10f5'/>
<id>urn:sha1:f9198030015f05e2463f15064d6ff3cc627c10f5</id>
<content type='text'>
Chris pointed out that while the comparison is certainly problematic
and does not have well-defined behavior, it isn't any worse than some
of the other abuses that we merely warn about and doesn't need to make
the compilation fail.

Revert the release notes change (r159766) now that this is just a new warning.

llvm-svn: 159939
</content>
</entry>
</feed>
