[clang-tools-extra] [tidy] add new check bugprone-return-const-ref-from-parameter (PR #89497)
Danny Mösch via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 21 23:34:02 PDT 2024
================
@@ -0,0 +1,31 @@
+.. title:: clang-tidy - bugprone-return-const-ref-from-parameter
+
+bugprone-return-const-ref-from-parameter
+========================================
+
+Detects return statements that return constant reference parameter as constant
----------------
SimplyDanny wrote:
```suggestion
Detects return statements that return a constant reference parameter as constant
```
https://github.com/llvm/llvm-project/pull/89497
More information about the cfe-commits
mailing list