[LLVMbugs] [Bug 19106] New: Incorrect diagnostic for category method -setObject:forKey:defaultValue:

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 11 09:45:44 PDT 2014


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

            Bug ID: 19106
           Summary: Incorrect diagnostic for category method
                    -setObject:forKey:defaultValue:
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: tjw at me.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

clang-sa incorrectly warns about the object parameter being nil for a category
method -setObject:forKey:defaultValue: when it has no way of knowing the
semantics of that method.

See attached example.

-- 
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/20140311/52f854dd/attachment.html>


More information about the llvm-bugs mailing list