[libcxx-commits] [libcxx] [lldb] [libcxx] adds a size-based representation for `vector`'s unstable ABI (PR #155330)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 18 07:44:48 PDT 2026


================
@@ -58,6 +58,54 @@ most cases.
 This significantly restructures how ``function`` is written to provide better performance, but is currently not ABI
 stable.
 
+``_LIBCPP_ABI_VECTOR_LAYOUT``
----------------
ldionne wrote:

I like that we're documenting the ABI macro here, I think that was an oversight in previous versions of the patch. However, the name of the macro is `_LIBCPP_ABI_SIZE_BASED_VECTOR`, and `_LIBCPP_ABI_VECTOR_LAYOUT_POINTER_BASED` / `_LIBCPP_ABI_VECTOR_LAYOUT_SIZE_BASED` don't exist. Instead, I think we should follow the style used to document other macros a bit more closely. I'd suggest:

```
``_LIBCPP_ABI_SIZE_BASED_VECTOR``
-----------------------------------------
This changes the layout of `std::vector` from <...> to <...>.
```

You can keep the meat of your current documentation in the `<...>` in a form that makes sense.


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


More information about the libcxx-commits mailing list