Reland "Roll src/buildtools/third_party/libc++/trunk/ 79a2e924d..b1269813e (1399 commits)"

This is a reland of 3a28cd7fbcbf1e58c88c3ac756eaef69d0676eda

Changes:
* Add some additional tryjobs
* Disable debug mode when using LTO as it seems to break with
  https://reviews.llvm.org/D103964 (https://crbug.com/1327706)
* Define _LIBCPP_ABI_NAMESPACE for Windows to resolve a PDB size issue
  (http://crbug.com/1327710).

Original change's description:
> Revert "Roll src/buildtools/third_party/libc++/trunk/
> 79a2e924d..b1269813e (1399 commits)"
>
> This reverts commit 3a28cd7fbcbf1e58c88c3ac756eaef69d0676eda.
>
> Reason for revert:
> Findit (https://goo.gl/kROfz5) identified this CL at revision
> 3a28cd7fbcbf1e58c88c3ac756eaef69d0676eda as
> the culprit for failures in the continuous build including:
>
> Sample Failed Build: https://ci.chromium.org/b/8813722331991050449
> Sample Failed Step: compile
>
> If it is a false positive, please report it at
> https://bugs.chromium.org/p/chromium/issues/entry?status=Available&comment=Datastore+key+for+the+culprit+entity%3A+chromium.googlesource.com%2Fchromium%2Fsrc%2Frefs%2Fheads%2Fmain%2F3a28cd7fbcbf1e58c88c3ac756eaef69d0676eda&labels=Test-Findit-Wrong&components=Tools%3ETest%3EFindIt&summary=Wrongly+blame+3a28cd7fbcbf1e58c88c3ac756eaef69d0676eda
>
> Original change's description:
> > Roll src/buildtools/third_party/libc++/trunk/ 79a2e924d..b1269813e
> (1399 commits)
> >
> > Notes:
> >
> > We deliberately roll libc++ to b1269813eaf5 (~1.5 months old at the
> time
> > of this commit) rather than the latest version of libc++ in order to
> > deliberately avoid https://reviews.llvm.org/D122982, which causes a
> > potentially disruptive performance regression in Chrome
> > (https://crbug.com/1322961). https://reviews.llvm.org/D124328 is
> > supposed to fix this issue, so once that lands in libc++, we'll roll
> > past it again.
> >
> > Additional changes made to get this CL to pass presubmits:
> >
> > * Set _LIBCPP_ABI_VERSION=2 and _LIBCPP_ABI_NAMESPACE due to
> >   _LIBCPP_ABI_UNSTABLE being removed in
> >   https://reviews.llvm.org/D119173.
> > * Regenerate gvr-android-sdk prebuilts.
> > * Updates to libc++'s BUILD.gn to handle new files in libc++.
> > * Update check_static_initializers.py test since init_priority was
> >   changed from 101 to 100 in https://reviews.llvm.org/D95972.
> > * Miscellaneous increments to #pragma clang_max_tokens_here.
> >
> >
> https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git/+log/79a2e924d96e..b1269813eaf5
> >
> > $ git log 79a2e924d..b1269813e --date=short --no-merges --format='%ad
> %ae %s'
> > 2022-03-23 ldionne.2 [libc++] Correct outdated documentation about
> __config_site
> > 2022-03-23 ldionne.2 [libc++][NFC] Change availability macro from
> macosx to macos
> > 2022-03-23 ldionne.2 [libc++][NFC] Fix include guards and add a
> missing license header
> > 2022-03-23 danny.moesch Replace links to archived mailing lists by
> links to Discourse forums
> > 2022-03-22 ldionne.2 [libc++][NFC] Slight improvement to
> __availability documentation
> > 2022-03-22 ldionne.2 [libc++][NFC] Use struct instead of class for
> ranges::end
> > 2022-03-21 phosek Revert "[bootstrap] Allow passing options to
> sub-builds for all targets"
> > 2022-03-21 ldionne.2 [libc++] Re-enable workaround for pre-ranges CTAD
> in std::span
> > 2022-03-16 ldionne.2 [bootstrap] Allow passing options to sub-builds
> for all targets
> > 2022-03-21 zarko [libc++][AIX] AIX allows for changing permissions of
> symlinks
> > 2022-03-21 ldionne.2 [libc++] Trigger CI when cmake/ is modified
> > 2022-03-18 ldionne.2 [libunwind] Add libunwind to the bootstrapping
> build CI
> > 2022-03-21 ldionne.2 [libc++] Disable modules with the bootstrapping
> build
> > 2022-03-07 martin [libcxx] [ci] Check that Windows static libraries
> don't contain dllexports
> > 2022-03-20 koraq [libc++][test][NFC] Remove libcpp-no-concepts.
> > 2022-03-10 nikolasklauser [libc++] Prepare string tests for constexpr
> > 2022-03-03 koraq [libc++][test] Improves handle formatter.
> > 2022-03-08 nikolasklauser [libc++] Enable modernize-loop-convert
> > 2022-03-18 ashermancinelli [libc++] Make shared_ptr move unique_ptr's
> deleter
> > 2022-03-18 nikolasklauser [libc++][ranges] Implement ranges::min
> > 2022-03-17 varconst [libc++][ranges] Implement changes to
> reverse_iterator from One Ranges Proposal.
> > 2022-03-17 nikolasklauser [libc++] [test] Add
> ranges_robust_against_copying_*.pass.cpp
> > 2022-03-17 ldionne.2 [libc++] Install psutil on CI builders
> > 2022-03-17 ldionne.2 [libc++] Add missing <cstddef> include
> > 2022-03-14 ldionne.2 [libc++] Switch to the new testing configurations
> by default
> > 2022-03-17 david.spickett Revert "[libcxx][CI] Use temporary clang-13
> bots for Arm/AArch64"
> > 2022-03-07 nikolasklauser [libc++] Remove <utility> includes
> > 2022-03-14 nikolasklauser [libc++] Add warning pragma macros in the
> test suite
> > 2022-03-16 ldionne.2 [libc++][NFC] Reindent release notes bullet
> points
> > 2022-03-16 ldionne.2 [libc++][NFC] Rename member variables to avoid
> shadowing conflict in future patch
> > 2022-03-12 koraq [libc++][NFC] Add TEST_HAS_NO_INCOMPLETE_RANGES.
> > 2022-03-15 ldionne.2 [libc++][tests] Use CMake provided paths for
> includes and libdir instead of hardcoding them
> > 2022-03-15 ldionne.2 [libc++] Fix incorrect availability markup for
> bad_optional_access & friends
> > 2022-03-15 ldionne.2 [libc++] Do not install the C++ ABI library's
> headers as part of libc++'s build
> > 2022-03-03 ldionne.2 [libc++] Define
> _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER whenever we enable warnings in the
> test suite
> > 2022-03-14 ldionne.2 [libc++] Add workaround to avoid breaking users
> of <span> when <ranges> are disabled
> > 2022-03-15 ldionne.2 [libc++] Update URL to old libc++ dylibs
> > 2022-03-14 dimitry [libc++] Make __dir_stream visibility declaration
> consistent
> > 2022-03-07 ldionne.2 [libc++] Overhaul all tests for assertions and
> debug mode
> > 2022-03-14 ldionne.2 [libc++][NFC] Remove several redundant #if
> _LIBCPP_STD_VER > 17 in <span>
> > 2022-03-12 joeloser93 [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with
> _LIBCPP_STD_VER > 17. NFCI.
> > 2022-03-12 koraq [libc++] Remove unneeded tests.
> > 2022-03-12 koraq [libc++][NFC] Use TEST_HAS_NO_EXCEPTIONS.
> > 2022-03-12 koraq [libc++] Add a missing test case.
> > 2022-03-12 nikolasklauser [libc++][ranges] Implement ranges::find{,
> _if, _if_not}
> > 2021-08-24 ldionne.2 [libc++] Remove workaround for missing
> declarations on Windows store apps
> > 2021-08-18 ldionne.2 [libc++] Remove workaround for C11 features on
> compilers that don't support using_if_exists
> > 2022-03-08 ldionne.2 [libc++] Remove raw call to debug handler from
> __char_traits_length_checked
> > 2022-03-07 ldionne.2 [libc++] Add tests for the content of <cstddef>
> > 2022-01-27 ldionne.2 [libc++] Remove operator-> from iterator
> archetypes that don't need it
> > (...)
> > 2021-06-02 cjdb [libcxx][module-map] creates submodules for private
> headers
> > 2021-06-02 koraq [libc++][nfc] Add more nasty macros.
> > 2021-06-02 ldionne.2 [libc++] Remove unused variable warnings
> > 2021-05-08 ldionne.2 [libc++] Enable tests for the experimental
> library by default
> > 2021-06-02 ldionne.2 Revert "[libc++] NFC: Move unwrap_iter to its own
> header"
> > 2021-06-02 Daniel.McIntosh [libcxx][NFC] Tidy up calculation of __nbuf
> in num_put::do_put, and add comments
> > 2020-12-02 ldionne.2 [libc++] Add a CI job to test libc++ when
> building for 32 bit
> > 2021-05-31 ldionne.2 [libc++] NFC: Move unwrap_iter to its own header
> > 2021-06-01 z.zoelec2 [libcxx][ranges] Add `default_sentinel` and
> `default_sentinel_t`.
> > 2021-06-01 ldionne.2 [libc++] Fix the std_include.sh.cpp test that has
> been failing since c9385297ce
> > 2021-04-30 z.zoelec2 [libcxx] Implement view.interface.
> > 2021-06-01 ldionne.2 [libc++] Temporary hack to unbreak CI
> > 2021-05-28 martin [libcxx] [test] Fix the _supportsVerify check on
> Windows by fixing quoting
> > 2021-05-31 martin [libcxx] [test] Fix the include_as_c.sh.cpp test in
> MSVC configurations
> > 2021-05-31 martin [libcxx] [test] Remove an incorrect
> TEST_HAS_ALIGNED_ALLOC define from test_macros.h
> > 2021-05-31 martin [libcxx] Define LIBCPP_HAS_TIMESPEC_GET for MSVC
> configurations
> > 2021-05-28 martin [libcxx] [test] Don't look for the literal spelling
> __mbstate_t in warnings
> > 2021-05-28 cjdb [libcxx][nfc] moves std `advance`, `next`, and `prev`
> into their headers
> > 2021-05-31 harald [libc++] [test] Fix a few tests for 32-bit x86
> > 2021-05-27 ldionne.2 [libc++] Update all the pre-defined iterator
> types for C++20
> > 2021-05-29 arthur.j.odwyer [libc++] Avoid `result_type` and
> `unary/binary_function` in <valarray>.
> > 2021-05-28 martin [libcxx] [test] Add UNSUPPORTED: msvc in a couple
> verify.cpp tests
> > 2021-05-19 arthur.j.odwyer [libc++] Alphabetize and
> include-what-you-use. NFCI.
> > 2021-05-29 arthur.j.odwyer [libc++] [modules] Add __threading_support
> to the modulemap.
> > 2021-05-29 arthur.j.odwyer [libc++] [test] Update "test_compare.h"
> users to avoid removed-in-C++20 members. NFCI.
> > 2021-05-29 koraq Revert "[libc++] NFC: Move unwrap_iter to its own
> header"
> > 2021-05-28 arthur.j.odwyer [libc++] [test] Constexpr-ify a couple of
> insert-iterator tests.
> > 2021-05-28 ldionne.2 [libc++] NFC: Move unwrap_iter to its own header
> > 2021-04-28 ldionne.2 [libc++] Add all indirect callable concepts and
> projected
> > 2021-05-26 martin [libcxx] [test] Convert an XFAIL
> LIBCXX-WINDOWS-FIXME into UNSUPPORTED with explanation
> > 2021-05-27 ldionne.2 [libc++] NFC: Make it easier for vendors to
> extend the run-buildbot script
> > 2021-05-27 ldionne.2 [libc++] NFC: Refactor raw_storage_iterator test
> to use UNSUPPORTED markup
> > 2021-05-27 ldionne.2 Revert "[libc++] NFC: Parenthesize expression to
> satisfy GCC 11"
> > 2021-05-27 ldionne.2 [libc++] NFC: Parenthesize expression to satisfy
> GCC 11
> > 2021-05-25 ldionne.2 [libc++] Deprecate std::iterator and remove it as
> a base class
> > 2021-05-16 cjdb [libcxx][iterator] adds `std::ranges::prev`
> > 2021-05-08 cjdb [libcxx][iterator] adds `std::ranges::next`
> > 2021-05-26 z.zoelec2 [libcxx][nfc] Fix the ASAN bots: update
> expected.pass.cpp.
> > 2021-05-26 z.zoelec2 [libcxx][docs] Take mutex for common_iterator,
> common_view, and empty_view.
> > 2021-05-25 ldionne.2 [libc++] Add a job testing on GCC 11
> > 2021-05-18 koraq [libc++][format] Adds availability macros for
> std::format.
> > 2021-04-25 koraq [libc++][NFC] Move basic_format_parse_context to its
> own header.
> > 2021-04-25 koraq [libc++][NFC] Move format_error to its own header.
> > 2021-05-26 ldionne.2 [libc++] Fix concepts tests with GCC
> > 2021-05-05 cjdb [libcxx][iterator] adds `std::ranges::advance`
> > 2021-05-25 ldionne.2 [libc++] Install GCC 11 on CI builders
> > 2021-05-24 arthur.j.odwyer [libc++] [P0619] Hide not1 and not2 under
> _LIBCPP_ENABLE_CXX20_REMOVED_NEGATORS.
> > 2020-11-09 martin [libcxx] Fix the function name in exceptions from
> create_directories
> > 2021-05-12 martin [libcxx] [test] Explain an XFAIL
> LIBCXX-WINDOWS-FIXME and convert into UNSUPPORTED
> > 2021-05-18 martin [libcxx] Make the visibility attributes consistent
> for __narrow_to_utf8/__widen_from_utf8
> >
> > Created with:
> >   roll-dep src/buildtools/third_party/libc++/trunk
> >
> > Binary-Size: The increase is caused by
> https://reviews.llvm.org/D113413, which changed the implementation of
> std::sort(...) in libc++. This is a necessary change to keep libc++
> up-to-date.
> > Bug: 1273285
> > Change-Id: I58ced6f881493f055e9a777577cfa2eef9be38da
> > Reviewed-on:
> https://chromium-review.googlesource.com/c/chromium/src/+/3653488
> > Owners-Override: Nico Weber <thakis@chromium.org>
> > Reviewed-by: Nico Weber <thakis@chromium.org>
> > Reviewed-by: Hans Wennborg <hans@chromium.org>
> > Commit-Queue: Nico Weber <thakis@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1005258}
>
>
> Change-Id: I2154b5453f72bc9a9a209fc789750a642996ecdd
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 1273285
> Reviewed-on:
> https://chromium-review.googlesource.com/c/chromium/src/+/3655381
> Owners-Override: Ella Ge <eirage@google.com>
> Reviewed-by: Ella Ge <eirage@chromium.org>
> Commit-Queue: Ella Ge <eirage@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1005272}

Binary-Size: The increase is caused by https://reviews.llvm.org/D113413, which changed the implementation of std::sort(...) in libc++. This is a necessary change to keep libc++ up-to-date.
Cq-Include-Trybots: chromium/try:android-asan
Cq-Include-Trybots: chromium/try:chromeos-amd64-generic-cfi-thin-lto-rel
Cq-Include-Trybots: chromium/try:dawn-win10-x86-deps-rel
Cq-Include-Trybots: chromium/try:linux-chromeos-dbg
Cq-Include-Trybots: chromium/try:linux_chromium_cfi_rel_ng
Cq-Include-Trybots: chromium/try:linux_chromium_chromeos_msan_rel_ng
Cq-Include-Trybots: chromium/try:linux_chromium_msan_rel_ng
Cq-Include-Trybots: chromium/try:mac11-arm64-rel,mac_chromium_asan_rel_ng
Cq-Include-Trybots: chromium/try:win-asan,win7-rel
Cq-Include-Trybots: chromium/try:android-official,fuchsia-official
Cq-Include-Trybots: chromium/try:mac-official,linux-official
Cq-Include-Trybots: chromium/try:win-official,win32-official
Cq-Include-Trybots: chromium/try:linux-swangle-try-x64,win-swangle-try-x86
Cq-Include-Trybots: chrome/try:linux-chromeos-chrome
Cq-Include-Trybots: chrome/try:win-chrome,win64-chrome,linux-chrome,mac-chrome
Cq-Include-Trybots: chrome/try:linux-pgo,mac-pgo,win32-pgo,win64-pgo
Bug: 1273285
Change-Id: I9b371d51c0a7baf0107d13cf21fb5cfbe4fb1b0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3655638
Owners-Override: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Alan Zhao <ayzhao@google.com>
Cr-Commit-Position: refs/heads/main@{#1007702}
NOKEYCHECK=True
GitOrigin-RevId: 1558f8d76b6874f2c5159293923b519d8a58d885
7 files changed
tree: 1707f8b600b5af9c72fc9c56cba022e4a014e265
  1. .github/
  2. absl/
  3. ci/
  4. CMake/
  5. patches/
  6. ABSEIL_ISSUE_TEMPLATE.md
  7. absl.gni
  8. absl_hardening_test.cc
  9. AUTHORS
  10. BUILD.bazel
  11. BUILD.gn
  12. CMakeLists.txt
  13. conanfile.py
  14. CONTRIBUTING.md
  15. create_lts.py
  16. DIR_METADATA
  17. FAQ.md
  18. generate_def_files.py
  19. LICENSE
  20. OWNERS
  21. README.chromium
  22. README.md
  23. roll_abseil.py
  24. symbols_arm64_dbg.def
  25. symbols_arm64_rel.def
  26. symbols_x64_dbg.def
  27. symbols_x64_rel.def
  28. symbols_x64_rel_asan.def
  29. symbols_x86_dbg.def
  30. symbols_x86_rel.def
  31. UPGRADES.md
  32. WORKSPACE
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++11) 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 is officially supported on many platforms. See the Abseil platform support guide for details on supported operating systems, compilers, CPUs, etc.

Codemap

Abseil contains the following C++ library components:

  • base Abseil Fundamentals
    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.
  • debugging
    The debugging library contains code useful for enabling leak checks, and stacktrace and symbolization utilities.
  • hash
    The hash library contains the hashing framework and default hash functor implementations for hashable types in Abseil.
  • memory
    The memory library contains C++11-compatible versions of std::make_unique() and related memory management facilities.
  • meta
    The meta library contains C++11-compatible versions of type checks available within C++14 and C++17 versions of the C++ <type_traits> library.
  • numeric
    The numeric library contains C++11-compatible 128-bit integers.
  • profiling
    The profiling library contains utility code for profiling C++ entities. It is currently a private dependency of other Abseil libraries.
  • status
    The status contains abstractions for error handling, specifically absl::Status and absl::StatusOr<T>.
  • strings
    The strings library contains a variety of strings routines and utilities, including a C++11-compatible version of the C++17 std::string_view type.
  • 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, like a C++11-compatible version of the C++17 std::optional type.
  • 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: