[clang] [clang] Output an error when [[lifetimebound]] attribute is applied on a function parameter while the function returns void (PR #113460)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 25 01:50:24 PDT 2024
================
@@ -133,6 +133,15 @@ C++ Specific Potentially Breaking Changes
// Fixed version:
unsigned operator""_udl_name(unsigned long long);
+- Clang will now produce an error diagnostic when [[clang::lifetimebound]] is
+ applied on a parameter of a function that returns void. This was previously
+ gnored and had no effect.
----------------
cor3ntin wrote:
```suggestion
gnored and had no effect. (#GH107556)
```
https://github.com/llvm/llvm-project/pull/113460
More information about the cfe-commits
mailing list