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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to