[clang-tools-extra] [clang-tidy] fix false positive in bugprone-return-const-ref-from-parameter (PR #117734)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 09:03:12 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
----------------
EugeneZelenko wrote:

```suggestion
  by using the conditional operator ``cond ? var1 : var2`` and no longer giving
```

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


More information about the cfe-commits mailing list