Improved detection of argument swaps involving integral and floating-point
types by enhancing handling of implicit conversions. Now implicit casts
from float to double are also considered, same for integers.
Improved documentation.
Fixes: #62926
Paths
| Differential D151495
[clang-tidy] Improve build-in type handling in bugprone-swapped-arguments ClosedPublic Authored by PiotrZSL on May 25 2023, 1:59 PM.
Details Summary Improved detection of argument swaps involving integral and floating-point Fixes: #62926
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 16 2023, 10:20 AM Closed by commit rGcc4f86562127: [clang-tidy] Improve build-in type handling in bugprone-swapped-arguments (authored by PiotrZSL). · Explain WhyJul 16 2023, 11:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 540822 clang-tools-extra/clang-tidy/bugprone/SwappedArgumentsCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/swapped-arguments.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/swapped-arguments.cpp
|