Rafael Espindola
ea1ba0adfc
Replace -fobjc-default-synthesize-properties with disable-objc-default-synthesize-properties.
...
We want the modern behavior most of the time, so inverting the option simplifies
the driver and the tests.
llvm-svn: 191551
2013-09-27 20:21:48 +00:00
Fariborz Jahanian
b7c5f74264
ObjectiveC: Handle the case of qualifying protocols
...
declared in a typedef declaraton used as super
class of an ObjC class. Curretnly, these protocols
are dropped from the class hierarchy. Test shows that
it is now included. // rdar://15051465
llvm-svn: 191395
2013-09-25 19:36:32 +00:00
Aaron Ballman
b7243381c2
Added the attribute name to the err_attribute_wrong_number_arguments diagnostic for clarity; updated almost all of the affected test cases.
...
Thanks to Fariborz Jahanian for the suggestion!
llvm-svn: 186980
2013-07-23 19:30:11 +00:00
Aaron Ballman
b06c690c5d
Fixing the build bots from the previous commit.
...
llvm-svn: 186947
2013-07-23 15:21:34 +00:00
Aaron Ballman
283ef4234c
Replacing some manual diagnostic checks with an existing helper method. Adding missing test cases for the diagnostics.
...
llvm-svn: 186944
2013-07-23 15:16:00 +00:00
Fariborz Jahanian
bbc126e7df
Objective-C: Another case of issuing warning about misusing
...
property auto-synthesis before knowingit it is to be
auto-synthesized. // rdar://14094682
llvm-svn: 183556
2013-06-07 20:26:51 +00:00
Fariborz Jahanian
4614524d4a
Objective-C: Removes a bogus warning about auto-synthesis
...
of properties. Fixes // rdar://14085456
llvm-svn: 183542
2013-06-07 18:32:55 +00:00
Fariborz Jahanian
1446b34629
Objective-C: Tighten the rules when warning
...
is issused for on overriding 'readwrite'
property which is not auto-synthesized.
Buttom line is that if hueristics determine
that there will be a user implemented setter,
no warning will be issued. // rdar://13388503
llvm-svn: 177662
2013-03-21 20:50:53 +00:00
Fariborz Jahanian
b0df66b1ba
Objective-C: In my last path, also check
...
for existence of user setter before
issuing the warning about non-synthesizable
property. // rdar://13388503
llvm-svn: 176906
2013-03-12 22:22:38 +00:00
Fariborz Jahanian
9d25a48b41
Objective-C: Issue warning in couple of obscure cases
...
when property autosynthesis does not synthesize a property.
When property is declared 'readonly' in a super class and
is redeclared 'readwrite' in a subclass. When a property
autosynthesis causes it to share 'ivar' with another property.
// rdar://13388503
llvm-svn: 176889
2013-03-12 19:46:17 +00:00
Patrick Beard
acfbe9e1f2
Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared.
...
The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger
the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698>
llvm-svn: 154187
2012-04-06 18:12:22 +00:00
Ted Kremenek
0c2c90b1ad
After further discussion, rename attribute 'objc_disable_automatic_synthesis' to 'objc_requires_property_definitions'.
...
llvm-svn: 147622
2012-01-05 22:47:47 +00:00
Ted Kremenek
dec9d12fc4
Rename attribute 'objc_suppress_autosynthesis' to 'objc_disable_automatic_synthesis'.
...
llvm-svn: 147567
2012-01-04 23:51:09 +00:00
Fariborz Jahanian
f716839580
Test case for my previous patch.
...
llvm-svn: 147563
2012-01-04 23:16:48 +00:00
Fariborz Jahanian
a28a78ec2f
Support __has_attribute for objc_suppress_autosynthesis
...
which is automatic with proper spelling :).
llvm-svn: 147555
2012-01-04 22:29:28 +00:00
Fariborz Jahanian
7249e36704
objc: diagnose misplacement of objc_suppress_autosynthesis
...
attribute.
llvm-svn: 147490
2012-01-03 22:52:32 +00:00
Fariborz Jahanian
3c9707bd90
objc: use objc_suppress_autosynthesis attribute on classes
...
which should not be default synthesized.
llvm-svn: 147468
2012-01-03 19:46:00 +00:00