[libcxx-commits] [libcxx] [NFC] Renames a template parameter to avoid clashes with userspace names. (PR #76829)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 3 07:56:05 PST 2024


https://github.com/bgra8 created https://github.com/llvm/llvm-project/pull/76829

None

>From fa6ddc53437ea5177c23935d47dcabc03589be59 Mon Sep 17 00:00:00 2001
From: Bogdan Graur <bgraur at google.com>
Date: Wed, 3 Jan 2024 15:52:34 +0000
Subject: [PATCH] [NFC] Renames a template parameter to avoid clashes with
 userspace names.

---
 libcxx/include/__format/format_arg_store.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libcxx/include/__format/format_arg_store.h b/libcxx/include/__format/format_arg_store.h
index c481992d2d719a..8180e2de8c0f4c 100644
--- a/libcxx/include/__format/format_arg_store.h
+++ b/libcxx/include/__format/format_arg_store.h
@@ -228,15 +228,15 @@ _LIBCPP_HIDE_FROM_ABI void __store_basic_format_arg(basic_format_arg<_Context>*
   ([&] { *__data++ = __format::__create_format_arg<_Context>(__args); }(), ...);
 }
 
-template <class _Context, size_t N>
+template <class _Context, size_t _Nargs>
 struct __packed_format_arg_store {
-  __basic_format_arg_value<_Context> __values_[N];
+  __basic_format_arg_value<_Context> __values_[_Nargs];
   uint64_t __types_ = 0;
 };
 
-template <class _Context, size_t N>
+template <class _Context, size_t _Nargs>
 struct __unpacked_format_arg_store {
-  basic_format_arg<_Context> __args_[N];
+  basic_format_arg<_Context> __args_[_Nargs];
 };
 
 } // namespace __format



More information about the libcxx-commits mailing list