[llvm-bugs] [Bug 33319] New: Lint for when a mutable object is returned from an object whose return type is an immutable superclass of it

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 5 18:15:44 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33319

            Bug ID: 33319
           Summary: Lint for when a mutable object is returned from an
                    object whose return type is an immutable superclass of
                    it
           Product: clang
           Version: 4.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: michael.eisel at gmail.com
                CC: llvm-bugs at lists.llvm.org

This would prevent, for example, returning an NSMutableArray instance from a
method that declares that it returns an NSArray.

-- 
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/20170606/9cb07a60/attachment.html>


More information about the llvm-bugs mailing list