[PATCH] D151495: [clang-tidy] Improve build-in type handling in bugprone-swapped-arguments

Piotr Zegar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 25 13:59:53 PDT 2023


PiotrZSL created this revision.
PiotrZSL added reviewers: bkramer, njames93, carlosgalvezp.
Herald added a subscriber: xazax.hun.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151495

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151495.525786.patch
Type: text/x-patch
Size: 10983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230525/3f9e6d53/attachment.bin>


More information about the cfe-commits mailing list