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

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 1 10:47:41 PDT 2024


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

Do you have more details about what exactly was dangling? That seems suspicious to me, since we should never have UB in our tests. It would be possible to demote this to a warning, but I don't think we want to -- IMO the test suite did the right thing by making this an error cause we should probably be fixing it.

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


More information about the libcxx-commits mailing list