[llvm-bugs] [Bug 40650] New: clang::QualType.getAsString for Nullability attribute in arrays is incorrect.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 7 11:46:13 PST 2019


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

            Bug ID: 40650
           Summary: clang::QualType.getAsString for Nullability attribute
                    in arrays is incorrect.
           Product: clang
           Version: 8.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pwhite at whitecryption.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Suppose we have a method like the following:
- (void)test1:(int [_Nonnull])arg {}

If we print out arg, the clang::QualType print will be:
int  _Nonnull []

This result is incorrect because it is not a valid type. If you tried to use
this type for anything it would fail, since _Nonull is interpreted as applying
to int rather than the array.

-- 
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/20190207/93e27606/attachment.html>


More information about the llvm-bugs mailing list