llvm-project
e7dd223e - [clang-tidy] Add new check `readability-use-numeric-limits` (#127430)

Commit
140 days ago
[clang-tidy] Add new check `readability-use-numeric-limits` (#127430) The adds a check that replaces specific numeric literals like `32767` with the equivalent call to `std::numeric_limits` (such as `std::numeric_limits<int16_t>::max())`. Partially addresses #34434, but notably does not handle cases listed in the title post such as `~0` and `-1`.
Author
Parents
Loading