[libc++] Add [[clang::lifetimebound]] attribute to std::forward and friends
This allows clang to catch lifetime bugs through these functions. As a drive-by, replace `_LIBCPP_INLINE_VISIBILITY` with `_LIBCPP_HIDE_FROM_ABI`. Fixes #59900 Reviewed By: ldionne, #libc Spies: rsmith, rnk, aaron.ballman, libcxx-commits Differential Revision: https://reviews.llvm.org/D141321
Loading
Please sign in to comment