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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 23 13:52:51 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10722

           Summary: clang doesn't report missing @required properties
                    declared in adopted system protocols
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: tjw at me.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7111)
 --> (http://llvm.org/bugs/attachment.cgi?id=7111)
test case

If you adopt a protocol with @required properties, clang isn't reporting
missing implementations of the properties if the adopted protocol was defined
in a system header. If you copy the protocol into your own .m file, edit it to
avoid name conflicts, then clang does warn about the missing properties.

See the attached example, using NSFilePresenter which defines
'presentedItemURL' and 'presentedItemOperationQueue' properties. When adopting
NSFilePresenter, no warning is emitted for the missing properties, but copying
it into the .m file and renaming stuff does provoke warnings for the 'foo_'
prefixed properties.

gcc reports warnings for both cases.

-- 
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