[libcxx-commits] [libcxx] mark std::make_format_args with clang::lifetimebound attribute (PR #78997)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 25 11:02:34 PST 2024
================
@@ -63,14 +63,15 @@ using wformat_args = basic_format_args<wformat_context>;
# endif
template <class _Context = format_context, class... _Args>
-_LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI __format_arg_store<_Context, _Args...> make_format_args(_Args&... __args) {
+_LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI __format_arg_store<_Context, _Args...>
+make_format_args(_Args&... __args _LIBCPP_LIFETIMEBOUND) {
----------------
philnik777 wrote:
```suggestion
make_format_args(_LIBCPP_LIFETIMEBOUND _Args&... __args) {
```
Same below, just to keep it consistent across the code base.
https://github.com/llvm/llvm-project/pull/78997
More information about the libcxx-commits
mailing list