[libcxx-commits] [libcxx] Add [[clang::lifetimebound]] to numerous functions in libc++ include headers (PR #112751)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 29 11:41:39 PDT 2024


================
@@ -10,6 +10,8 @@
 #ifndef SUPPORT_TEST_MACROS_HPP
 #define SUPPORT_TEST_MACROS_HPP
 
+#pragma clang diagnostic warning "-Wdangling"
----------------
higher-performance wrote:

It was due to deliberate dangling inside some of the tests, which caused CI to terminate prematurely (I believe in `libcxx/test/std/containers/views/views.span/span.cons/array.pass.cpp`).

I figured checking this inside tests didn't make much sense, so I demoted it to a warning to get CI going. I'm not sure how you'd like it to be handled long-term.

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


More information about the libcxx-commits mailing list