Roll libc++ from 5abc7f839700 to b16984ce99c7 (84 revisions)

This CL also includes the following fixes for the roll:
- Remove redundent dereference call to fix new [nodiscard] error
- Add suppresions for pragma-clang-attribute and ignored-attribute

https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git/+log/5abc7f839700..b16984ce99c7

2026-06-03 ovatonne@gmail.com [libc++][tests] Add missing strong exception guarantee test coverage in forward_list (#200666)
2026-06-03 de34@live.cn [libc++][locale] Applied `[[nodiscard]]` (#200726)
2026-06-03 eiytoq@outlook.com [libc++][span] LWG4243: `as_bytes`/`as_writable_bytes` is broken with `span<volatile T>` (#200993)
2026-06-03 de34@live.cn [libc++][test] Make narrowing in `nasty_char_traits::to_char_type` more explicit (#138375)
2026-06-03 xavier.roche@algolia.com [libc++] Reject cv-qualified types in __is_signed/unsigned_integer_v (#200377)
2026-06-03 vinay_deshmukh@outlook.com [libc++] Make `<map>` `std::map` constexpr as part of P3372R3 (#134330)
2026-06-02 michaelbuch12@gmail.com [clang] Treat unnamed bitfields as padding in `__builtin_clear_padding` (#201102)
2026-06-02 de34@live.cn [libc++] Apply `[[nodiscard]]` to `unique_lock` and `<shared_mutex>` (#200986)
2026-06-01 de34@live.cn [libc++][type_traits] Applied `[[nodiscard]]` (#200760)
2026-06-01 hghristov.rmm@gmail.com [libc++] Applied `[[nodiscard]]` to `optional::iterator` (#198489)
2026-05-30 nhat7203@gmail.com [libc++][ranges] P2542R8: Implement `views::concat` (#120920)
2026-05-30 xavier.roche@algolia.com [libc++] std::byteswap support for _BitInt(N) (#196512)
2026-05-29 brad@comstyle.com Update Google Benchmark to v1.9.5 (#198964)
2026-05-29 nikolasklauser@berlin.de [libc++][NFC] Move functions in shared_ptr.h into the class body (#200343)
2026-05-29 nikolasklauser@berlin.de [libc++] Only push/pop diagnostics for ABI annotations pragmas if not in a system header (#200338)
2026-05-29 nikolasklauser@berlin.de [libc++] Use variable templates instead of class templates in shared_ptr.h (#199481)
2026-05-28 hghristov.rmm@gmail.com [libc++] Applied `[[nodiscard]]` to `array::iterator` (#198492)
2026-05-28 nikolasklauser@berlin.de [libc++] Fix multi{map,set}::extract not returning the first matching element (#199703)
2026-05-28 nikolasklauser@berlin.de [libc++] Simplify the implementation of conditional a bit (#199916)
2026-05-28 wtranviet@proton.me [libc++] Implement P3508R0: Wording for "constexpr for specialized memory algorithms" (#197313)
2026-05-27 nikolasklauser@berlin.de [libc++] Update the base image hash to get GCC 16 (#199882)
2026-05-27 mlevine55@bloomberg.net [libc++] Add __is_transparently_comparable_v optimizations for set, multiset, and multimap functions [Issue 187105] (#189735)
2026-05-27 paulkirth@google.com Add missing annotations for Apple platforms (#198864)
2026-05-27 nikolasklauser@berlin.de [libc++][C++03] Fix array/size_and_alignment.compile.pass.cpp (#198822)
2026-05-27 nikolasklauser@berlin.de [libc++] Remove workarounds for __{add,remove}_pointer on AppleClang (#199821)
2026-05-27 nikolasklauser@berlin.de [libc++][NFC] Remove lit annotations for older AppleClang versions (#199817)
2026-05-27 hui.xie1990@gmail.com [clang] Add builtin to clear padding bytes (prework for P0528R3) (#75371)
2026-05-27 nikolasklauser@berlin.de [libc++] Update the GCC head version to 17 (#199823)
2026-05-26 nikolasklauser@berlin.de [libc++] Mark string.capacity/over_max_size.pass.cpp as UNSUPPORTED on old dylibs (#199682)
2026-05-26 nikolasklauser@berlin.de [libc++] Use __in_out_result in the remaining appropriate algorithms (#198156)
2026-05-26 nikolasklauser@berlin.de [libc++] Address most LLVM23 TODOs (#199397)
2026-05-25 mizvekov@gmail.com [libc++] remove duplicate assertions for void/reference const any_cast (#199425)
2026-05-25 nikolasklauser@berlin.de [libc++] Fix shared_ptr(Y*) constraint check on GCC (#199429)
2026-05-24 de34@live.cn [libc++][test] Move backported algorithms to `libcxx/test/support` (#199431)
2026-05-24 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #147007 (#198991)
2026-05-24 nikolasklauser@berlin.de [libc++] Remove AppleClang woraround for __builtin_verbose_trap (#199171)
2026-05-23 de34@live.cn [libc++][test] Merge test files for `mdspan::at` (#199330)
2026-05-23 de34@live.cn [libc++][test] Make `copy_move_types.h` usable in old modes (#199183)
2026-05-23 de34@live.cn [libc++][test] Add backported `destroy({_at,_n})` for tests (#199185)
2026-05-22 eiytoq@outlook.com [libc++][mdspan] P3383R3: `mdspan.at()` (#175213)
2026-05-22 nikolasklauser@berlin.de [libc++][NFC] Remove incorrect TODO about deprecating mem_fn (#199172)
2026-05-21 hghristov.rmm@gmail.com [libc++][iterator] Applied `[[nodiscard]]` (#172200)
2026-05-21 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #166690 (#198977)
2026-05-21 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #166724 (#198839)
2026-05-20 vonosmas@gmail.com [libc++] Add support for thread-id handling for llvm-libc. (#198595)
2026-05-20 ych@meta.com [libc++] Require the exact assignment expression to be trivial in __uninitialized_allocator_copy_impl (#196648)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #165619 (#198829)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #131754 (#198827)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Fix string.view/char.bad.verify.cpp (#198824)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #129542 (#198826)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Fix copy_backward.pass.cpp and equal.pass.cpp (#198812)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #110235 (#198805)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #115271 (#198804)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Back-port #188714 (#198798)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Remove contiguous_iterators.verify.cpp (#198816)
2026-05-20 nikolasklauser@berlin.de [libc++] Simplify the implementation of to_address a bit (#198256)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick tests from #154559 (#198736)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #161049 (#198735)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #130573 (#198734)
2026-05-20 nikolasklauser@berlin.de [libc++][C++03] Cherry-pick #117497 and #154078 (#198731)
2026-05-20 eiytoq@outlook.com [libc++] Refactor `std::midpoint` tests and add constraint checks (#175388)
2026-05-19 nikolasklauser@berlin.de [libc++] Port The OpenBSD localization to the new locale API (#194317)
2026-05-19 hghristov.rmm@gmail.com [libc++][ranges] `ranges::iota_view` update tests with `__int128` (#175447)
2026-05-19 eiytoq@outlook.com [libc++][mdspan][NFC] Simplify `std::extents` implementation (#196819)
2026-05-18 nikolasklauser@berlin.de [libc++] Revert changes to locale_base_api.h accidentally committed in f5b6e4f (#198413)
2026-05-18 eiytoq@outlook.com [libc++][mdspan] Add missing `std::move` in `std::extents` (#196574)
2026-05-17 nikolasklauser@berlin.de [libc++] Introduce a private version of in_out_result and use it for copy/move algorithms (#198086)
2026-05-15 nikolasklauser@berlin.de [libc++] Replace __is_primary_template with a concept (#197646)
2026-05-15 74773920+danielcm585@users.noreply.github.com [libc++][ranges] Fix missing `forward` in `views::enumerate` (#197635)
2026-05-15 eiytoq@outlook.com [libc++] LWG4266: `layout_stride::mapping` should treat empty mappings as exhaustive (#191629)
2026-05-15 eiytoq@outlook.com [libc++][mdspan] Refactor bounds checking in `std::extents` (#197001)
2026-05-14 nikolasklauser@berlin.de [libc++] Replace ranges::find_first_of with std::find_first_of in __try_constant_folding (#197641)
2026-05-13 c8ef@outlook.com [libc++] Remove empty csvgb file. (#196939)
2026-05-11 c8ef@outlook.com [libc++] Implement `ranges::fold_right_last` (completes P2322R6) (#195580)
2026-05-10 aidengrossman@google.com [libcxx] Switch to check-runtimes for generic-llvm-libc (#196780)
2026-05-09 de34@live.cn [libc++] LWG4324: `unique_ptr<void>::operator*` is not SFINAE-friendly (#190919)
2026-05-08 nikolasklauser@berlin.de [libc++] Remove _LIBCPP_HIDE_FROM_ABI from <__utility/pair.h> (#196508)
2026-05-08 nikolasklauser@berlin.de [libc++] Introduce implicit and explicit ABI annotations (#193045)
2026-05-08 xavier.roche@algolia.com [libc++] Recognize _BitInt(N) as signed/unsigned integer type (#185027)
2026-05-08 eiytoq@outlook.com [libc++][mdspan] LWG3974: `mdspan::operator[]` should not copy `OtherIndexTypes` (#195814)
2026-05-08 jun930436@gmail.com [libc++][NFC] Mark LWG3884 as complete in C++26 issues status (#195819)
2026-05-07 aidengrossman@google.com [libcxx] Remove _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS (#196141)
2026-05-07 nikolasklauser@berlin.de [libc++][NFC] Remove unused #define (#195831)
2026-05-06 hghristov.rmm@gmail.com [libc++][utility] Test `[[nodiscard]] std::exchange` (#195807)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/libcxx-chromium
Please CC hans@chromium.org,thakis@chromium.org on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: hans@chromium.org,thakis@chromium.org
Bug: 503250165
Change-Id: I10d21cedd9a6d0c1c44ac18ab0a4a8bac3aafbb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8018911
Reviewed-by: Marlon Facey <mfacey@chromium.org>
Commit-Queue: Liza Burakova <liza@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Reviewed-by: Danil Chapovalov <danilchap@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1659778}
NOKEYCHECK=True
GitOrigin-RevId: b6f75a2ff62a38d798452c42a89f50d9b49e1fd0
14 files changed
tree: c857abbfa100bd4166eadd135c281170c48bb219
  1. .github/
  2. absl/
  3. ci/
  4. CMake/
  5. patches/
  6. .clang-format-ignore
  7. ABSEIL_ISSUE_TEMPLATE.md
  8. absl.gni
  9. absl_hardening_test.cc
  10. AUTHORS
  11. BUILD.bazel
  12. BUILD.gn
  13. CMakeLists.txt
  14. conanfile.py
  15. CONTRIBUTING.md
  16. create_lts.py
  17. DIR_METADATA
  18. FAQ.md
  19. generate_def_files.py
  20. LICENSE
  21. MODULE.bazel
  22. OWNERS
  23. PrivacyInfo.xcprivacy
  24. README.chromium
  25. README.md
  26. roll_abseil.py
  27. symbols_arm64_dbg.def
  28. symbols_arm64_dbg_cxx23.def
  29. symbols_arm64_rel.def
  30. symbols_arm64_rel_cxx23.def
  31. symbols_x64_dbg.def
  32. symbols_x64_dbg_cxx23.def
  33. symbols_x64_rel.def
  34. symbols_x64_rel_asan.def
  35. symbols_x64_rel_asan_cxx23.def
  36. symbols_x64_rel_cxx23.def
  37. symbols_x86_dbg.def
  38. symbols_x86_dbg_cxx23.def
  39. symbols_x86_rel.def
  40. symbols_x86_rel_cxx23.def
  41. UPGRADES.md
README.md

Abseil - C++ Common Libraries

The repository contains the Abseil C++ library code. Abseil is an open-source collection of C++ code (compliant to C++17) designed to augment the C++ standard library.

Table of Contents

About Abseil

Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.

In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.

Abseil is not meant to be a competitor to the standard library; we've just found that many of these utilities serve a purpose within our code base, and we now want to provide those resources to the C++ community as a whole.

Quickstart

If you want to just get started, make sure you at least run through the Abseil Quickstart. The Quickstart contains information about setting up your development environment, downloading the Abseil code, running tests, and getting a simple binary working.

Building Abseil

Bazel and CMake are the official build systems for Abseil. See the quickstart for more information on building Abseil using the Bazel build system. If you require CMake support, please check the CMake build instructions and CMake Quickstart.

Support

Abseil follows Google's Foundational C++ Support Policy. See this table for a list of currently supported versions compilers, platforms, and build tools.

Codemap

Abseil contains the following C++ library components:

  • base
    The base library contains initialization code and other code which all other Abseil code depends on. Code within base may not depend on any other code (other than the C++ standard library).
  • algorithm
    The algorithm library contains additions to the C++ <algorithm> library and container-based versions of such algorithms.
  • cleanup
    The cleanup library contains the control-flow-construct-like type absl::Cleanup which is used for executing a callback on scope exit.
  • container
    The container library contains additional STL-style containers, including Abseil's unordered “Swiss table” containers.
  • crc The crc library contains code for computing error-detecting cyclic redundancy checks on data.
  • debugging
    The debugging library contains code useful for enabling leak checks, and stacktrace and symbolization utilities.
  • flags
    The flags library contains code for handling command line flags for libraries and binaries built with Abseil.
  • hash
    The hash library contains the hashing framework and default hash functor implementations for hashable types in Abseil.
  • log
    The log library contains LOG and CHECK macros and facilities for writing logged messages out to disk, stderr, or user-extensible destinations.
  • memory
    The memory library contains memory management facilities that augment C++'s <memory> library.
  • meta
    The meta library contains type checks similar to those available in the C++ <type_traits> library.
  • numeric
    The numeric library contains 128-bit integer types as well as implementations of C++20's bitwise math functions.
  • profiling
    The profiling library contains utility code for profiling C++ entities. It is currently a private dependency of other Abseil libraries.
  • random
    The random library contains functions for generating pseudorandom values.
  • status
    The status library contains abstractions for error handling, specifically absl::Status and absl::StatusOr<T>.
  • strings
    The strings library contains a variety of strings routines and utilities.
  • synchronization
    The synchronization library contains concurrency primitives (Abseil's absl::Mutex class, an alternative to std::mutex) and a variety of synchronization abstractions.
  • time
    The time library contains abstractions for computing with absolute points in time, durations of time, and formatting and parsing time within time zones.
  • types
    The types library contains non-container utility types.
  • utility
    The utility library contains utility and helper code.

Releases

Abseil recommends users “live-at-head” (update to the latest commit from the master branch as often as possible). However, we realize this philosophy doesn't work for every project, so we also provide Long Term Support Releases to which we backport fixes for severe bugs. See our release management document for more details.

License

The Abseil C++ library is licensed under the terms of the Apache license. See LICENSE for more information.

Links

For more information about Abseil: