Skip to content

Use #pragma clang deprecated in limits.h #52656

@AaronBallman

Description

@AaronBallman

limits.h currently has the following comment:

/* LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX are a GNU extension.  It's too bad
   that we don't have something like #pragma poison that could be used to
   deprecate a macro - the code should just use LLONG_MAX and friends.
 */

This seems like a good candidate for #pragma clang deprecated to diagnose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cclang:headersHeaders provided by Clang, e.g. for intrinsicsenhancementImproving 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