[clang-tools-extra] [clang-tidy] ignore `[[clang::lifetimebound]]` param in return-const-ref-from-parameter (PR #118315)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 2 14:29:48 PST 2024
================
@@ -184,7 +184,8 @@ Changes in existing checks
<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`` and no longer giving
- false positives for functions which contain lambda.
+ false positives for functions which contain lambda and ignore the parameters
----------------
5chmidti wrote:
> ~the~ parameters
https://github.com/llvm/llvm-project/pull/118315
More information about the cfe-commits
mailing list