Skip to content

[BoundsSafety] combining single and counted_by prints weird in attr-only mode #13605

Description

@hnrklssn
typedef int * __single _Nonnull baz_t;
void bar(int len, baz_t __counted_by(len) p);

ends up being dumped as bar 'void (int, int * __counted_by(len) _Nonnull__single)'.
In -fbounds-safety it's (more reasonably) dumped as bar 'void (int, int *__single __counted_by(len) _Nonnull)'

The representation of these types may change as we upstream single, so probably not very high priority, but when we upstream we should try to handle this properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:bounds-safetyIssue relating to the experimental -fbounds-safety feature in Clang

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions