[all-commits] [llvm/llvm-project] d8969a: Split _LIBCPP_STRING_EXTERN_TEMPLATE_LIST up into ...

Martijn Vels via All-commits all-commits at lists.llvm.org
Thu Feb 20 20:23:09 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d8969a1cb963caa979a7cfd298f79108b9f0c0ca
      https://github.com/llvm/llvm-project/commit/d8969a1cb963caa979a7cfd298f79108b9f0c0ca
  Author: Martijn Vels <mvels at google.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M libcxx/include/__string
    M libcxx/include/string
    M libcxx/src/string.cpp

  Log Message:
  -----------
  Split _LIBCPP_STRING_EXTERN_TEMPLATE_LIST up into a V1 and UNSTABLE version.

This change splits the _LIBCPP_STRING_EXTERN_TEMPLATE_LIST up into a _LIBCPP_STRING_V1_EXTERN_TEMPLATE_LIST containing the stable ABI, and a _LIBCPP_STRING_UNSTABLE_EXTERN_TEMPLATE_LIST containing the unstable ABI.

The purpose is to explicitly define and maintain the two lists, where the unstable ABI allows for ABI breaking changes for purposes such as optimization while offering a strong guarantee that any change inside the unstable ABI does not affect the stable ABI.

As per the comment in the __string header, we do still allow etries to be added to the stable ABI list as the c++ versions and corresponding c++ std API changes.




More information about the All-commits mailing list