[clang-tools-extra] [clang-tidy] Fix false positives with template in `misc-unconventional-assign-operator` check (PR #143292)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 15 07:16:12 PDT 2025
================
@@ -204,6 +204,11 @@ Changes in existing checks
<clang-tidy/checks/misc/redundant-expression>` check by providing additional
examples and fixing some macro related false positives.
+- Improved :doc:`misc-unconventional-assign-operator
+ <clang-tidy/checks/misc/unconventional-assign-operator>` check by fixing
+ false positives when copy assignment operator function in a template class
+ returns the result of another assignment to ``*this``(``return *this=...``).
----------------
EugeneZelenko wrote:
```suggestion
returns the result of another assignment to ``*this`` (``return *this=...``).
```
https://github.com/llvm/llvm-project/pull/143292
More information about the cfe-commits
mailing list