[clang-tools-extra] [clang-tidy] Add new check `readability-use-numeric-limits` (PR #127430)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 24 06:40:08 PDT 2025


earnol wrote:

For C the macro constants from limits.h can be used: `UCHAR_MAX` instead of `std::numeric_limits<uint8_t>::max()`. Please refer to https://en.cppreference.com/w/c/header/limits. Please also check compatibility requirement because list of available constants depends on the selected standard.

https://github.com/llvm/llvm-project/pull/127430


More information about the cfe-commits mailing list