[llvm-bugs] [Bug 24614] New: Using NS_REQUIRES_SUPER with dot notation causes a warning

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 28 08:09:19 PDT 2015


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

            Bug ID: 24614
           Summary: Using NS_REQUIRES_SUPER with dot notation causes a
                    warning
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mczonk at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14788
  --> https://llvm.org/bugs/attachment.cgi?id=14788&action=edit
Patch to fix the requires super with dot notation including a test.

- (id)propertyListRepresentation
{
  return super.propertyListRepresentation;
  // Warning super not called.
}

- (id)propertyListRepresentation
{
  return [super propertyListRepresentation];
  // No warning
}

Please see the attached patch to find a fix.

This is the first time I submit to llvm/clang so I hope you find all
information you need.

-- 
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/20150828/01070217/attachment.html>


More information about the llvm-bugs mailing list