Skip to content

Clang pre-defined macros for C23 binary format? #81896

@SchrodingerZhu

Description

@SchrodingerZhu

Is there any plan to add pre-defined macros for binary format (b/B) similar to __UINT8_FMTx__?

Glibc has added PRIbN and PRIBN: https://github.com/bminor/glibc/blob/bbd248ac0d75efdef8fe61ea69b1fb25fb95b6e7/stdlib/inttypes.h#L168.

Having __UINT8_FMTb__ or __UINT8_FMTB__ will help libc to define PRIbN and PRIBN as in

Metadata

Metadata

Assignees

No one assigned

    Labels

    c23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"enhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions