getAsString for Nullability Attributed array

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

getAsString for Nullability Attributed array

David Blaikie via cfe-dev

When using clang::QualType.print or clang::QualType.getAsString for an arrays with Nullability attributes, the attribute appears before the square brackets.

For example: "int [_Nonnull]" in source would return "int _Nonnull[]" from getAsString. In this case, _Nonnull would be interpreted as applying to non-pointer type int which is invalid.

Is this a bug?

 

Thanks,

-Pearson


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev