[clang] [clang] Output an error when [[lifetimebound]] attribute is applied on a function parameter while the function returns void (PR #113460)

Boaz Brickner via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 25 02:03:16 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.
----------------
bricknerb wrote:

Done.

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


More information about the cfe-commits mailing list