Daniel Dunbar
98982ef954
Fix unintended use of doxygen comment strings.
...
llvm-svn: 55805
2008-09-04 21:54:53 +00:00
Daniel Dunbar
c7dfbfd544
Prevent invalid warnings about incomplete implementations for methods
...
which are inherited from base clases or protocols.
llvm-svn: 55790
2008-09-04 20:01:15 +00:00
Daniel Dunbar
de1ec9cdcd
Improve type-checking of ?: for Objective-C types.
...
- Allow any Objective-C object types to devolve to type id in a ?:
expression. This matches gcc behavior more closely.
llvm-svn: 55705
2008-09-03 17:53:25 +00:00
Daniel Dunbar
ef89086c12
Restore Objective-C dot-syntax access of methods.
...
- Now also searches for correct setter method.
- There are still some issues regarding validation of the setter
method and access of read-only properties.
llvm-svn: 55686
2008-09-03 01:05:41 +00:00
Daniel Dunbar
e0a09432cc
Temporarily disable some tests which due to dot-syntax
...
access of methods.
llvm-svn: 55569
2008-08-30 16:22:34 +00:00
Daniel Dunbar
e0a673e60f
Update test case (we were missing a warning here)
...
llvm-svn: 55408
2008-08-27 05:41:04 +00:00
Daniel Dunbar
5e558bcf26
Add ObjCPropertyDecl::isReadOnly.
...
Respect isReadOnly when generating synthesized method decls.
llvm-svn: 55364
2008-08-26 07:16:44 +00:00
Daniel Dunbar
40bf7fe20e
In incompatible pointer-typed ?: expressions, add implicit conversion
...
of RHSs to id type instead of void* if either has Objective-C object
type.
- This ensures the result can still be used in normal places an
object can be used, like a message send.
Add implicit conversions for ?: applied to qualified id types to
ensure that the RHSs are compatible.
- This prevents a codegen crash (creating invalid PHI nodes).
- Again, this relates to the fact that qualified id types have no
canonical types.
- Note that the implicit type casted to is incorrect, however this
doesn't currently cause problems because of the flexibility of the
id type.
Test cases for above.
llvm-svn: 55346
2008-08-26 00:41:39 +00:00
Anders Carlsson
1ec2ccd8ee
Objective-C foreach selector elements must be lvalues.
...
llvm-svn: 55316
2008-08-25 18:16:36 +00:00
Anders Carlsson
c7c20702b1
Fix silly bug in objc_gc attribute parsing and add test case
...
llvm-svn: 55286
2008-08-24 16:33:25 +00:00
Chris Lattner
2ebb178f8b
Fix a FIXME by not creating an invalid AST on erroneous input. Also
...
make diagnostic output in some other malformed cases significantly
more useful. This fixes PR2708
llvm-svn: 55215
2008-08-23 01:48:03 +00:00
Chris Lattner
3f4c68b78e
proper grammar n stuph
...
llvm-svn: 54954
2008-08-18 22:51:28 +00:00
Chris Lattner
e5d812af59
warn when someone tries to make an array of ObjC interfaces instead of array
...
of pointers to them. rdar://4304469
llvm-svn: 54953
2008-08-18 22:49:54 +00:00
Chris Lattner
197a301669
Fix rdar://6124613 a crash on invalid code.
...
llvm-svn: 54340
2008-08-05 06:19:09 +00:00
Chris Lattner
9c1842b612
simplify some code.
...
llvm-svn: 54091
2008-07-26 03:47:43 +00:00
Chris Lattner
908d39e45e
remove duplicate error message.
...
llvm-svn: 54090
2008-07-26 03:40:25 +00:00
Chris Lattner
31236f8744
remove objc prefixes from these tests.
...
llvm-svn: 54085
2008-07-26 01:04:40 +00:00
Chris Lattner
89026888ef
move all objc sema tests into a new SemaObjC directory. Next step is to
...
remove the objc- prefix from the tests that use it.
llvm-svn: 54084
2008-07-26 00:57:24 +00:00