[LLVMbugs] [Bug 10722] clang doesn't report missing @required properties declared in adopted system protocols

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 26 18:09:58 PDT 2011


Timothy J. Wood <tjw at me.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from Timothy J. Wood <tjw at me.com> 2011-08-26 20:09:57 CDT ---
I'm marking this reopened since this rationalization doesn't make sense to me.

-Wsystem-headers should control warnings that would be emitted when compiling
system headers themselves, not whether user code that adopts them should warn.

By this argument, no warning would be generated by a class adopting a protocol
with required methods and failing to implement those methods. A @required
property in a protocol is just shorthand for -foo and -setFoo: (with
appropriate atomicity and reference counting semantics), and it should emit
warnings when the property is missing just like a missing method would.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list