[clang-tools-extra] [clang-tidy][performance-unnecessary-value-param] Avoid in coroutines (PR #140912)

Dmitry Polukhin via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 05:09:48 PDT 2025


================
@@ -74,3 +74,9 @@ Options
    default is empty. If a name in the list contains the sequence `::`, it is
    matched against the qualified type name (i.e. ``namespace::Type``),
    otherwise it is matched against only the type name (i.e. ``Type``).
+
+.. option:: IsAllowedInCoroutines
+
+   A boolean specifying whether the check should suggest passing parameters by
+   reference in coroutines. The default is `false`. Passing parameters by reference
+   in coroutines may not be safe.
----------------
dmpolukhin wrote:

Done

https://github.com/llvm/llvm-project/pull/140912


More information about the cfe-commits mailing list