[LLVMbugs] [Bug 11185] New: Add checks for setting NSError **outError

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 19 18:32:05 PDT 2011


           Summary: Add checks for setting NSError **outError
           Product: clang
           Version: 2.8
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: tjw at me.com
                CC: llvmbugs at cs.uiuc.edu

If you are implementing a method or function with a return type that can be
used as a condition, and your method takes an "NSError **" argument, then
ensure that all paths set the outError (if non-NULL) or pass outError down to
other methods/functions that can fill it out.

Passing outError down to a void-returning function or method should mark that
path as having set outError (on the presumption that it is a utility function
that fulfills this purpose).

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