Enforce a stricter match with the swap function signature, eliminating false-positives.
Fixes: #64303
| Paths 
 |  Differential  D157185  
[clang-tidy] Fix false-positives in performanc-noexcept-swap ClosedPublic Authored by PiotrZSL on Aug 5 2023, 1:13 AM. 
Details Summary Enforce a stricter match with the swap function signature, eliminating false-positives. Fixes: #64303 
Diff Detail 
 Event Timelinecarlosgalvezp added inline comments. 
 This revision is now accepted and ready to land.Aug 5 2023, 8:09 AM Closed by commit rG2553e2403a33: [clang-tidy] Fix false-positives in performanc-noexcept-swap (authored by PiotrZSL).  ·  Explain WhyAug 6 2023, 2:26 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 547528 clang-tools-extra/clang-tidy/performance/NoexceptSwapCheck.cpp
 clang-tools-extra/docs/ReleaseNotes.rst
 clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-swap.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Would be good to add a small comment summarizing what signatures this block of code matches, for easier readability.