Skip to content

attributes: consider supporting more _ATTRIBUTE macros #3834

Description

@achabense

Currently we have _NODISCARD and _FALLTHROUGH, which will expand to [[attribute]] if supported, or nothing otherwise.

I think it will be very helpful to support more _ATTRIBUTE macros for standard attributes. For example, in this pr, we can make the code much cleaner if we have _LIKELY and _UNLIKELY.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething can be improved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions