[clang-tools-extra] [clang-tidy] Make `bugprone-unhandled-self-assignment` check more general (PR #147066)
Andrey Karlov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 14 04:08:14 PDT 2025
================
@@ -189,6 +189,12 @@ Changes in existing checks
calls of ``std::string`` constructor with char pointer, start position and
length parameters.
+- Improved :doc:`bugprone-unhandled-self-assignment
+ <clang-tidy/checks/bugprone/unhandled-self-assignment>` check by adding
+ an additional matcher that generalizes the copy-and-swap idiom pattern
+ detection. The checker now properly recognizes copy-and-swap implementations
+ that use "extended" copy/move constructors.
----------------
negativ wrote:
Fixed
https://github.com/llvm/llvm-project/pull/147066
More information about the cfe-commits
mailing list