aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/UseStdNumbersCheck.cpp
AgeCommit message (Collapse)AuthorFilesLines
2025-04-18[clang-tidy] Use llvm::less_second (NFC) (#136396)Kazu Hirata1-3/+1
2025-03-11[clang-tidy] support different precisions (#130540)Tommy Chen1-1/+4
Support float and long double versions of the math functions for UseStdNumbersCheck. For example, after this commit the check is able to catch `sqrtf(2)` and `expl(1)`. Fixes: #130325
2024-04-15Include cmath to fix build error on mac os 10.14 (#88665)Zentrik1-0/+1
This fixes #88664.
2023-12-06[clang-tidy][NFC] Change ArrayRef into std::vector in modernize-use-std-numbersPiotr Zegar1-5/+4
To avoid compiler errors on some platforms introduced by #66583, now using std::vector to pass list of matchers into main matcher, and removed static variable as it could introduce some other issues.
2023-12-06[clang-tidy] add modernize-use-std-numbers (#66583)Julian Schmidt1-0/+449
Finds constants and function calls to math functions that can be replaced with c++20's mathematical constants from the 'numbers' header and offers fix-it hints. Does not match the use of variables with that value, and instead, offers a replacement at the definition of those variables.
2023-12-06Revert "[clang-tidy] add modernize-use-std-numbers (#66583)"Piotr Zegar1-449/+0
Compilation issue, to be resolved. This reverts commit 3f73fd774cf8fc2f288767ea077bfa351eb7aa80.
2023-12-06Revert "[clang-tidy][NFC] Attemp to fix compliation issue in ↵Piotr Zegar1-1/+1
UseStdNumbersCheck.cpp" This reverts commit bb0b261c2c731f9ceb5a70b2343b892b2ee05f3e.
2023-12-06[clang-tidy][NFC] Attemp to fix compliation issue in UseStdNumbersCheck.cppPiotr Zegar1-1/+1
Attempt to fix issue introduced in #66583
2023-12-06[clang-tidy] add modernize-use-std-numbers (#66583)Julian Schmidt1-0/+449
Finds constants and function calls to math functions that can be replaced with c++20's mathematical constants from the 'numbers' header and offers fix-it hints. Does not match the use of variables with that value, and instead, offers a replacement at the definition of those variables.