summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/objcbridge-attribute.m
Commit message (Collapse)AuthorAgeFilesLines
* Determine the attribute subject for diagnostics based on declarative ↵Aaron Ballman2017-11-261-1/+1
| | | | | | | | | | information in DeclNodes.td. This greatly reduces the number of enumerated values used for more complex diagnostics; these are now only required when the "attribute only applies to" diagnostic needs to be generated manually as part of semantic processing. This also clarifies some terminology used by the diagnostic (methods -> Objective-C methods, fields -> non-static data members, etc). Many of the tests needed to be updated in multiple places for the diagnostic wording tweaks. The first instance of the diagnostic for that attribute is fully specified and subsequent instances cut off the complete list (to make it easier if additional subjects are added in the future for the attribute). llvm-svn: 319002
* [Objective-C Sema] Fixes a typo which did not allow Fariborz Jahanian2015-04-101-1/+12
| | | | | | | bridge casting to super class of object's bridge type. rdar://18311183 llvm-svn: 234652
* Allow objc_bridge(id) to be used on typedefs of [cv] void*.John McCall2015-02-011-7/+15
| | | | | | rdar://19678874 llvm-svn: 227774
* Objective-C. Improve diagnosis of bridging types.Fariborz Jahanian2014-04-291-1/+8
| | | | | | // rdar://16737117 llvm-svn: 207542
* Objective-C arc [Sema]. Allow bridge cast of a qualified-id expressionFariborz Jahanian2014-04-041-13/+13
| | | | | | | when bridged Objective-C type conforms to the protocols in CF types's Objective-C class. // rdar://16393330 llvm-svn: 205659
* ObjectiveC migrator. Improve on definition, useFariborz Jahanian2013-11-221-1/+1
| | | | | | | | and testing of objc_bridgmutable attribute per Aaron Ballman's comments. // rdar://15498044 llvm-svn: 195396
* ObjectiveC. Allow toll free bridge cast warnings outsideFariborz Jahanian2013-11-211-15/+4
| | | | | | | ARC and in objectiveC/ObjectiveC++ MRR mode as well. // rdar://15454846 llvm-svn: 195288
* ObjectiveC ARC. warn in presense of __bridge casting to Fariborz Jahanian2013-11-201-3/+13
| | | | | | or from a toll free bridge cast. // rdar://15454846 llvm-svn: 195278
* ObjectiveC ARC. Better checking of toll free briding Fariborz Jahanian2013-11-201-0/+24
| | | | | | | from qualified-id objects to CF types with objc_bridge annotation. // rdar://15454846 llvm-svn: 195264
* ObjectiveC ARC. validate toll free bridge castingFariborz Jahanian2013-11-201-4/+43
| | | | | | | to or from 'id' and qualified-id types. // rdar://15454846 llvm-svn: 195178
* bjectiveC. Use a uniform diagnostic forFariborz Jahanian2013-11-191-7/+7
| | | | | | 'objc_bridge' attribute. // rdar://15454846. llvm-svn: 195135
* ObjectiveC 'objc_bridging'. Assorment of improvements Fariborz Jahanian2013-11-191-10/+10
| | | | | | per Doug/Jordan comments. // rdar://15454846. llvm-svn: 195066
* ObjectiveC ARC. Adopt objc_bridge attributeFariborz Jahanian2013-11-191-16/+23
| | | | | | | on struct/union/class instead of typedef of such types. // rdar://15454846 llvm-svn: 195061
* ObjectiveC ARC. More validation of toll-free bridging ofFariborz Jahanian2013-11-161-2/+4
| | | | | | | CF objects with objc_bridge'ing annotaiton. // rdar://15454846 llvm-svn: 194938
* ObjectiveC ARC. Validate toll free bridge castingFariborz Jahanian2013-11-161-2/+4
| | | | | | | of ObjectiveC objects to CF types when CF type has the objc_bridge attribute. llvm-svn: 194930
* ObjetiveC ARC. Start diagnosing invalid toll free bridging.Fariborz Jahanian2013-11-161-2/+4
| | | | | | // rdar://15454846. llvm-svn: 194915
* ObjectiveC ARC. Only briding of pointer to struct CF object is allowed.Fariborz Jahanian2013-11-151-5/+5
| | | | | | | Improve on wording on illegal objc_bridge argumment. // rdar://15454846 llvm-svn: 194881
* ObjectiveC ARG. A positive test of my previous patch.Fariborz Jahanian2013-11-151-1/+16
| | | | | | // rdar://15454846 llvm-svn: 194864
* ObjectiveC ARC. Lookup type associated with objc_bridage atFariborz Jahanian2013-11-151-1/+10
| | | | | | | | the point of CF object type-cast and issue diagnostic if it is not a valid ObjectiveC class. // rdar//15454846. This is wip. llvm-svn: 194861
* Use a more realistic NS class names in Fariborz Jahanian2013-11-141-8/+8
| | | | | | | objc_bridge attributes in my previous test. Per Jordan's comment. llvm-svn: 194645
* ObjectiveC ARC. objc_bridge attribute should be applied toFariborz Jahanian2013-11-141-9/+9
| | | | | | toll-free bridging cf types only. // rdar//15454846 wip. llvm-svn: 194640
* ObjectiveC ARC. Introduce a new attribute, 'objc_bridge'Fariborz Jahanian2013-11-131-0/+29
that teaches the compiler about a subset of toll-free bridging semantics. This is wip. // rdar://15454846 llvm-svn: 194633
OpenPOWER on IntegriCloud