[clang-tools-extra] [clang-tidy] `modernize-use-trailing-return-type`: add an option to apply to `void`-returning functions as well (PR #129406)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 7 06:33:02 PDT 2025


================
@@ -190,6 +195,11 @@ Changes in existing checks
   <clang-tidy/checks/readability/qualified-auto>` check by adding the option
   `IgnoreAliasing`, that allows not looking at underlying types of type aliases.
 
+- Improved :doc:`performance-unnecessary-value-param
+  <clang-tidy/checks/performance/unnecessary-value-param>` check performance by
+  tolerating fix-it breaking compilation when functions is used as pointers 
+  to avoid matching usage of functions within the current compilation unit.
+
----------------
HerrCai0907 wrote:

```suggestion

```

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


More information about the cfe-commits mailing list