Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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
|
|
This fixes #88664.
|
|
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.
|
|
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.
|
|
Compilation issue, to be resolved.
This reverts commit 3f73fd774cf8fc2f288767ea077bfa351eb7aa80.
|
|
UseStdNumbersCheck.cpp"
This reverts commit bb0b261c2c731f9ceb5a70b2343b892b2ee05f3e.
|
|
Attempt to fix issue introduced in #66583
|
|
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.
|