[clang-tools-extra] [clang-tidy] fix false positive in bugprone-return-const-ref-from-parameter (PR #117734)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 28 06:48:34 PST 2024
================
@@ -179,7 +179,8 @@ Changes in existing checks
- Improved :doc:`bugprone-return-const-ref-from-parameter
<clang-tidy/checks/bugprone/return-const-ref-from-parameter>` check to
diagnose potential dangling references when returning a ``const &`` parameter
- by using the conditional operator ``cond ? var1 : var2``.
+ by using the conditional operator ``cond ? var1 : var2`` and no longer giving
----------------
HerrCai0907 wrote:
I am not sure it is a fix of false positives. Maybe in generic, it more looks like add support of lambda function.
https://github.com/llvm/llvm-project/pull/117734
More information about the cfe-commits
mailing list