[LLVMbugs] [Bug 17885] New: Spurious warning when class setter/getter have same name as instance property

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 11 15:13:57 PST 2013


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

            Bug ID: 17885
           Summary: Spurious warning when class setter/getter have same
                    name as instance property
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tjw at me.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11519
  --> http://llvm.org/bugs/attachment.cgi?id=11519&action=edit
example case

We have a few places where we have class methods to control a default value for
an instance property. The class methods store their value in a global. clang
now reports a warning that we didn't use the property's backing ivar, even
though the method is a class method.

See the attached test case which should not warn at all.

clang version 3.4 (trunk 194424)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131111/f0db43ad/attachment.html>


More information about the llvm-bugs mailing list