Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Required protocol methods warn with -Wselector #17929

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR17930
Status NEW
Importance P normal
Reported by Tommy Barnes (tommydebug@outlook.com)
Reported on 2013-11-14 13:57:53 -0800
Last modified on 2013-11-14 14:16:47 -0800
Version unspecified
Hardware Macintosh MacOS X
CC llvm-bugs@lists.llvm.org, tommydebug@outlook.com
Fixed by commit(s)
Attachments required_protocol_wselector_bug.m (1275 bytes, application/octet-stream)
Blocks
Blocked by
See also
Created attachment 11540
Minimal repro

I've found that strict selector matching (-Wselector) behaves differently with
@required and @optional protocol methods.

The minimal repro file shows this difference.

I would prefer -Wselector to not warn in either case. This affects my project
because I want the benefit of selector matching without triggering false
positive warnings when using required protocols.

related to http://llvm.org/bugs/show_bug.cgi?id=11960
Quuxplusone commented 11 years ago

Attached required_protocol_wselector_bug.m (1275 bytes, application/octet-stream): Minimal repro

Quuxplusone commented 11 years ago

edit: This is about -Wselector, not 'strict selector matching' as mentioned above.