[clang-tools-extra] [clang-tidy] Add modernize-use-return-value check (PR #182081)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 11:06:21 PST 2026


================
@@ -0,0 +1,39 @@
+.. title:: clang-tidy - modernize-use-return-value
+
+modernize-use-return-value
+==========================
+
+Finds functions that return ``void`` and have a single non-const
----------------
EugeneZelenko wrote:

```suggestion
Finds functions that return ``void`` and have a single non-const reference
output parameter, suggesting that they return the value directly instead.
```

Same in rest of documentation and Release Notes.

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


More information about the cfe-commits mailing list