[all-commits] [llvm/llvm-project] 5afbbd: [libc][CPP] Add vector container and unit tests (#...

Jeff Bailey via All-commits all-commits at lists.llvm.org
Fri Sep 11 12:25:44 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5afbbd04803cc2e30d6026c98b245a1599d09ac9
      https://github.com/llvm/llvm-project/commit/5afbbd04803cc2e30d6026c98b245a1599d09ac9
  Author: Jeff Bailey <jbailey at raspberryginger.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M libc/src/__support/CPP/CMakeLists.txt
    A libc/src/__support/CPP/vector.h
    M libc/test/src/__support/CPP/CMakeLists.txt
    A libc/test/src/__support/CPP/vector_test.cpp

  Log Message:
  -----------
  [libc][CPP] Add vector container and unit tests (#222972)

Sequential group database entrypoints require dynamically resizable
buffers to parse arbitrary-length records and member lists reliably.
Rather than managing raw heap reallocations manually within subsystem
parsers, dynamic growth is encapsulated in a dedicated cpp::vector
container.

Add cpp::vector in libc/src/__support/CPP/vector.h with move semantics,
safe fallible allocation (returning bool for out-of-memory handling
without C++ exceptions), and RAII clean-up for trivially and
non-trivially destructible types.

* Add vector header library in libc/src/__support/CPP/CMakeLists.txt
* Implement vector container in libc/src/__support/CPP/vector.h
* Add comprehensive unit tests in
libc/test/src/__support/CPP/vector_test.cpp
* Register vector_test in libc/test/src/__support/CPP/CMakeLists.txt

Assisted-by: Automated tooling, human reviewed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list