Skip to content

Extend counted_by support beyond struct fields #167365

@rapidsna

Description

@rapidsna

Currently, counted_by and related attributes are only supported in struct fields. This issue tracks extending support to:

  • Function parameters
  • Return types
  • Global variables
  • Local variables

For typedef, support would only make sense if the attribute argument is a constexpr or constant literal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:bounds-safetyIssue/PR 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