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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 07:36:43 PST 2025


vbvictor wrote:

> 1. Please place value check in ast matcher part, match all integer will cost lots of cpu and ram to store temporary results.

Code in _clang-tools-extra\clang-tidy\bugprone\StringConstructorCheck.cpp_ maybe helpful since it shows work with numbers and have matcher `isBiggerThan`. Similar matcher I guess can be written for this check.


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


More information about the cfe-commits mailing list