[clang] [clang-tools-extra] [clang-tidy] New performance linter: performance-inefficient-copy-assign (PR #179467)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 3 10:46:55 PST 2026
================
@@ -115,13 +115,19 @@ New checks
Looks for functions returning ``std::[w|u8|u16|u32]string`` and suggests to
change it to ``std::[...]string_view`` for performance reasons if possible.
-
+
- New :doc:`modernize-use-structured-binding
<clang-tidy/checks/modernize/use-structured-binding>` check.
Finds places where structured bindings could be used to decompose pairs and
suggests replacing them.
+- New :doc:`performance-inefficient-copy-assign
+ <clang-tidy/checks/performance/inefficient-copy-assign>` check.
+
+ Suggests insertion of ``std::move(...)`` to turn copy assignment operator
----------------
EugeneZelenko wrote:
Please synchronize with first statement in documentation.
https://github.com/llvm/llvm-project/pull/179467
More information about the cfe-commits
mailing list