summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/class-message-protocol-lookup.m
Commit message (Collapse)AuthorAgeFilesLines
* [ObjC][Sema] Avoid warning about a call to an instance method on anAlex Lorenz2017-03-151-0/+27
| | | | | | | | | | | | | | | | instance of a qualified Class object when that instance method comes from a protocol that's implemented by NSObject Instance methods from a root class like NSObject are also class methods because the metaclass of root class derives from that root class. Therefore, we can avoid the warning for instances of qualified Class objects that point to classes that derive from NSObject. Note that we actually don't know if a Class instance points to a class that derives from NSObject at compile-time, so we have to make a reasonable assumption that the majority of instances will do so. rdar://22812517 llvm-svn: 297862
* Added a new attribute, objc_root_class, which informs the compiler when a ↵Patrick Beard2012-04-061-1/+1
| | | | | | | | | 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
* After numerous requests, have Objective-C 'method declared here' notes ↵Ted Kremenek2012-02-271-1/+1
| | | | | | mention the actual method. This looks better within an IDE, where text isn't always regurgitated in the presentation of a warning. Fixes radar 10914035. llvm-svn: 151579
* Fix lookup for class messages sent to qualified-classFariborz Jahanian2011-04-061-0/+34
types such that protocols are seached first. Fixes // rdar://9224670 llvm-svn: 129016
OpenPOWER on IntegriCloud