[clang-tools-extra] [tidy] add new check bugprone-return-const-ref-from-parameter (PR #89497)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 21 07:01:53 PDT 2024


================
@@ -112,6 +112,12 @@ New checks
   Detects error-prone Curiously Recurring Template Pattern usage, when the CRTP
   can be constructed outside itself and the derived class.
 
+- New :doc:`bugprone-return-const-ref-from-parameter
+  <clang-tidy/checks/bugprone/return-const-ref-from-parameter>` check.
+
+  Detects the function which returns the const reference from parameter which
----------------
EugeneZelenko wrote:

Please synchronize with first statement in documentation.

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


More information about the cfe-commits mailing list