[clang-tools-extra] [clang-tidy] Fix `performance-unnecessary-value-param` FN when passing `std::function` rvalue into `std::map::try_emplace` (PR #180806)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 14 07:06:24 PST 2026
================
@@ -32,9 +32,12 @@ Example:
ExpensiveToCopy Copy(Value);
}
-If the parameter is not const, only copied or assigned once and has a
-non-trivial move-constructor or move-assignment operator respectively the check
-will suggest to move it.
+If the parameter is not ``const``, and only copied or assigned once, the check
+will suggest a move in the following scenarios:
+
+1. the parameter has a non-trivial move-constructor or move-assignment operator
----------------
EugeneZelenko wrote:
I think will be good idea to use bulleted, not numbered list.
https://github.com/llvm/llvm-project/pull/180806
More information about the cfe-commits
mailing list