[libcxx-commits] [libcxx] [libc++][format] Adds ABI tags to inline constexpr variables. (PR #86293)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 22 17:15:35 PDT 2024
================
@@ -805,6 +805,13 @@ typedef __char32_t char32_t;
// the implementation of a virtual function in an ABI-incompatible way in the first place,
// since that would be an ABI break anyway. Hence, the lack of ABI tag should not be noticeable.
//
+// The macro can be applied to record and enum types. When the tagged type is nested in
+// a record this "parent" record needs to have the macro too. Another use case for applying
+// this macro to records and unions is to apply an ABI tag to inline constexpr variables.
+// The macro can be directly applied to an inline constexpr variable. This is useful for the
+// Unicode data tables; these depend on the Unicode version used. Updating the Unicode
+// version may affect the size of the tables.
----------------
ldionne wrote:
This comment should be reworded to be Unicode-agnostic. You can say something like "This can be useful for inline variables that are implementation details which are expected to potentially change in the future".
https://github.com/llvm/llvm-project/pull/86293
More information about the libcxx-commits
mailing list