[all-commits] [llvm/llvm-project] 69875d: [libc++] Refactor node creation and destruction in...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Sep 15 07:10:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69875d59bc08f358abcb4b4d3a6ed25c059d3441
      https://github.com/llvm/llvm-project/commit/69875d59bc08f358abcb4b4d3a6ed25c059d3441
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-09-15 (Fri, 15 Sep 2023)

  Changed paths:
    M libcxx/include/chrono
    M libcxx/include/forward_list
    M libcxx/include/list
    M libcxx/test/libcxx/transitive_includes/cxx23.csv
    M libcxx/test/libcxx/transitive_includes/cxx26.csv

  Log Message:
  -----------
  [libc++] Refactor node creation and destruction in list and forward_list (#65614)

This removes a lot of code duplication, makes the code simpler and
prepares the terrain for https://reviews.llvm.org/D101206, which will
fix some UB in the node-based containers.

This also allows removing the dependency of list and forward_list on
unique_ptr by using __allocation_guard instead.




More information about the All-commits mailing list