Skip to content

attributes: consider supporting more _ATTRIBUTE macros #3834

@achabense

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.

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