Revert "Reland "Roll src/buildtools/third_party/libc++/trunk/ b1269813e..1a637088a (287 commits)""

This reverts commit 27fe5a3eb669235bbc66c7ebc09bff0cf4fff5a3.

Reason for revert: The first revert should not be the reason for the windows bot failure. We need to investigate more.

Original change's description:
> Reland "Roll src/buildtools/third_party/libc++/trunk/ b1269813e..1a637088a (287 commits)"
>
> This reverts commit 67e5cfc8a6bf41b3d39a52f1fe5a10625a1babf5.
>
> Reason for revert: Suspected culprit for
>
> https://ci.chromium.org/p/chromium/builders/ci/Win%20Builder%20%28dbg%29
> https://ci.chromium.org/p/chromium/builders/ci/Win%20x64%20Builder%20%28dbg%29
>
> Original change's description:
> > Revert "Roll src/buildtools/third_party/libc++/trunk/ b1269813e..1a637088a (287 commits)"
> >
> > This reverts commit 49792f173a1be0abefae749285e8590e84889fb2.
> >
> > Reason for revert: Create revert as part of the procedure to update libassistant per wutao's instructions in https://crrev.com/c/3702740.
> >
> > Original change's description:
> > > Roll src/buildtools/third_party/libc++/trunk/ b1269813e..1a637088a (287 commits)
> > >
> > > In order to get the chromeos buidls to pass (broken by this CL due to
> > > libassistant), we need to first submit this CL so libassistant can pick
> > > up buildtools, revert this CL, and then resubmit once libassistant has
> > > been updated.
> > >
> > > Additionally, reenable libc++ debug mode with ThinLTO since this is
> > > resolved by https://reviews.llvm.org/D122941.
> > >
> > > Additional changes to get this to build:
> > > * Regenerate absl
> > > * Regenerate gvr shims
> > > * Update #pragma clang_max_tokens as necessary
> > >
> > > https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git/+log/b1269813eaf5..1a637088a36d
> > >
> > > $ git log b1269813e..1a637088a --date=short --no-merges --format='%ad %ae %s'
> > > 2022-06-12 koraq [libc++][NFC] Use concepts in <bit>.
> > > 2022-06-12 koraq [libc++] Removes unneeded includes.
> > > 2022-06-12 koraq [libc++] Removes a GCC bug work-around.
> > > 2022-06-12 koraq [libc++][test] Remove support old compiler support.
> > > 2022-05-26 ldionne.2 [libc++] Do not yield from __sp_mut::lock()
> > > 2022-06-13 nikolasklauser [libc++] Fix std::lower_bound with C++20-hostile iterators
> > > 2022-03-28 phosek [CMake][libcxx] Use target_include_directories for libc++ headers
> > > 2022-06-11 nikolasklauser [libc++] Use unsigned char in basic_string::__short again
> > > 2022-06-11 joeloser93 [libc++][test] Add tuple trivial destructor test
> > > 2022-05-28 joeloser93 [libc++][test] Refactor SmallBasicString uses in range.lazy.split tests
> > > 2022-06-11 nikolasklauser [libc++][NFC] Update ranges algorithms status page
> > > 2021-10-02 koraq [libc++][format] Implement format-string.
> > > 2022-06-10 nikolasklauser [libc++] Use the same implementation of invoke for C++03 and C++11
> > > 2022-06-10 nikolasklauser [libc++] Granularize <iterator> includes
> > > 2022-06-10 nikolasklauser [libc++] Simplify type_traits and use more builtins
> > > 2022-06-10 ldionne.2 [libc++] Make sure we install the modulemap file with install-cxx-headers
> > > 2022-06-10 nikolasklauser [libc++] Remove uses of __two in type_traits
> > > 2022-06-10 ldionne.2 [libc++][NFC] Fix indentation of some #if directives
> > > 2022-06-10 nikolasklauser [libc++] Granularize even more of type_traits
> > > 2022-06-07 nikolasklauser [libc++] Implement ranges::replace{, _if}
> > > 2022-06-09 koraq [libc++] Fixes CI after Jammy update.
> > > 2022-06-09 ldionne.2 [libc++] Mark GDB pretty printers as unsupported on GCC 11.2 to make CI green
> > > 2022-06-06 martin [libcxx] [doc] Add a release note for distributors about MinGW builds and dllimport
> > > 2022-06-06 nikolasklauser [libc++] Granularize __string
> > > 2022-06-09 fmayer [NFC] change error message wording.
> > > 2022-06-07 fmayer [libcxx] improve LIBCXX_ABI_NAMESPACE error message
> > > 2022-05-30 koraq [libc++][CI] Updates Docker image.
> > > 2021-06-08 ldionne.2 [libc++] Towards a simpler extern template story in libc++
> > > 2022-05-23 ldionne.2 [libc++] Fix modules builds when features are removed
> > > 2022-06-08 koraq Revert "[libc++][CI] Updates Docker image."
> > > 2022-06-08 ldionne.2 [libc++][NFC] Add missing 'return 0'
> > > 2022-06-07 ldionne.2 [libc++][NFC] Simplify enable_if for std::copy optimization
> > > 2022-06-08 ldionne.2 [libc++] Make sure we add /llvm to the list of safe directories
> > > 2022-06-08 nikolasklauser [libc++] Implement ranges::adjacent_find
> > > 2022-06-07 joeloser93 Revert "[libc++][test] Mark ranges.transform.pass.cpp UNSUPPORTED for AIX"
> > > 2022-04-01 ldionne.2 [libc++] Make the Debug mode a configuration-time only option
> > > 2022-05-31 koraq [libc++] Removes _LIBCPP_AVAILABILITY_TO_CHARS.
> > > 2022-05-30 koraq [libc++][CI] Updates Docker image.
> > > 2022-06-02 koraq [libc++] Don't use static constexpr in headers.
> > > 2022-06-07 ldionne.2 [libc++] Forgot to bump the CI timeout everywhere
> > > 2022-06-07 ldionne.2 [libc++] Bump timeout to avoid spurious failures on AIX
> > > 2022-06-06 nikolasklauser [libc++] Implement ranges::find_first_of
> > > 2022-04-10 martin [libcxx] Omit dllimport in public headers in MinGW mode
> > > 2022-04-11 martin [libcxx] [test] Don't use header defines for detecting linking against a DLL
> > > 2022-06-06 ldionne.2 [libc++][NFC] Move span tests under views.span
> > > 2022-06-06 ldionne.2 [libc++][NFC] Fix outdated comment in span test
> > > 2022-06-06 ldionne.2 [libc++][NFC] Add missing includes
> > > 2022-05-05 ldionne.2 [libc++] Avoid creating temporaries in unary expressions involving valarray
> > > 2022-06-03 ldionne.2 [libc++] Remove a bunch of conditionals on _LIBCPP_DEBUG_LEVEL
> > > 2022-06-05 nikolasklauser [libc++][ranges] Implement ranges::binary_search and ranges::{lower, upper}_bound
> > > (...)
> > > 2022-04-05 aeubanks [libcxx] Add flag to disable __builtin_assume in _LIBCPP_ASSERT
> > > 2022-04-04 ldionne.2 [libc++] Add back-deployment testing on arm64 macs
> > > 2022-04-07 nikolasklauser [libc++][ranges] Implement ranges::count{, _if}
> > > 2022-04-06 nikolasklauser [libc++] Remove redundant __invoke_constexpr functions
> > > 2022-04-07 nikolasklauser [libc++][ranges] Add implicit conversion to bool test for ranges::find{, if, if_not}
> > > 2022-02-25 martin [libcxx] [test] Stop defining LIBCXX-WINDOWS-FIXME
> > > 2022-04-05 koraq [libc++] Use cpp20_output_iterator in tests.
> > > 2022-04-03 koraq [NFC][libc++] Modularize chrono's calendar.
> > > 2021-10-26 ldionne.2 [libc++] Support arrays in make_shared and allocate_shared (P0674R1)
> > > 2022-03-10 martin [libcxx] [test] Remove UNSUPPORTED markings for mingw issues that no longer are present in CI
> > > 2022-04-05 ldionne.2 [libc++] Remove error about _LIBCPP_ALTERNATE_STRING_LAYOUT not being supported anymore
> > > 2022-04-05 ldionne.2 [libc++][NFC] Remove stray whitespace in comment
> > > 2022-01-20 martin [libcxx] [test] Fix the locale ctype widen tests on Windows
> > > 2022-04-05 hui.xie1990 [libc++] add global variable template std::views::empty
> > > 2022-03-19 koraq [libc++][test] Adds an cpp20_output_iterator.
> > > 2022-04-04 ldionne.2 [libc++] Tidy up tests for deduction guides and other compile-time failing properties in std::string
> > > 2022-04-05 ldionne.2 [libc++] Silence new deprecation warnings for C functions in tests
> > > 2022-04-05 nikolasklauser [libc++][ranges] Implement ranges::transform
> > > 2022-03-25 ldionne.2 [libc++] Implement tests for private headers using the new generator
> > > 2022-03-23 martin [libcxx] Stop recommending setting LIBCXX_HAS_WIN32_THREAD_API in the MinGW builds
> > > 2022-03-31 ldionne.2 [libc++] Fix std::is_array<T[0]> and add tests
> > > 2022-04-04 ldionne.2 [libc++][NFC] Rename generate_assertion_tests.py to generate_header_tests.py
> > > 2022-03-25 ldionne.2 [libc++] Implement all public header tests using the new generator
> > > 2022-04-03 ldionne.2 [libc++] Remove unused <iosfwd> include from <__debug>
> > > 2022-04-03 ldionne.2 [libc++][NFC] Fix weird indentation in test
> > > 2022-04-03 nikolasklauser [libc++][ranges] Implement ranges::max
> > > 2022-03-31 nikolasklauser [libc++] Canonicalize the ranges results and their tests
> > > 2022-03-30 martin [libcxx] [test] Avoid spurious test breakage in clang-cl-dll configs with newer CMake
> > > 2022-03-31 martin [libcxx] [ci] Enable -Werror for libcxxabi and libunwind too
> > > 2022-03-31 koraq [libc++] Fixes calendar function visibility.
> > > 2022-03-30 koraq [libc++][ci] Installs Japanese locale in Docker.
> > > 2022-03-27 koraq [libc++][doc] Update formatting status.
> > > 2022-03-31 ldionne.2 [libc++] Install psutil on the macOS nodes
> > > 2022-03-23 ldionne.2 [libc++] Remove the __libcpp_version file
> > > 2022-03-02 ldionne.2 [libc++] Add a CI job running MSAN
> > > 2022-03-30 martin [libcxx] [doc] Update Windows build instructions after deprecating the legacy standalone builds
> > > 2022-03-25 ldionne.2 [libc++] Ensure that all public C++ headers include <__assert>
> > > 2022-03-04 ldionne.2 [libunwind] Add a _LIBUNWIND_VERSION macro
> > > 2022-03-24 ldionne.2 [libc++] Use __builtin_expect and __builtin_assume in _LIBCPP_ASSERT
> > > 2022-03-29 ldionne.2 [libc++][NFC] Fix typo in comment
> > > 2022-03-28 ldionne.2 [libc++][libc++abi] Serialize the enable_assertions Lit parameter in the generated config
> > > 2022-03-28 brad [libcxx] random_device, specify optimal entropy properties for all OS's using arc4random()
> > > 2022-03-27 koraq [libc++][doc] Update format implementation status.
> > > 2021-09-04 koraq [libc++][format][2/6] Adds a __output_iterator.
> > > 2022-03-23 ldionne.2 [libc++] Remove the _LIBCPP_BOOL_CONSTANT macro
> > > 2022-03-18 nikolasklauser [libc++] Rename __identity to __type_identity
> > > 2022-03-24 ldionne.2 [libc++] Audit all uses of _LIBCPP_ASSERT and _LIBCPP_DEBUG_ASSERT
> > > 2022-03-24 ldionne.2 [libc++][NFC] Refactor the ABI changelog
> > > 2022-03-24 ldionne.2 [libc++][NFC] Update ABI changelog to account for new assertion handler
> > > 2022-03-03 ldionne.2 [libc++] Add a lightweight overridable assertion handler
> > >
> > > Created with:
> > >   roll-dep src/buildtools/third_party/libc++/trunk
> > >
> > > Bug: 1273285
> > > Change-Id: I46b3a6b4b1263bcd9ed4b7ef443a7388e1d52cc3
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3702740
> > > Commit-Queue: Alan Zhao <ayzhao@google.com>
> > > Owners-Override: Nico Weber <thakis@chromium.org>
> > > Reviewed-by: Nico Weber <thakis@chromium.org>
> > > Cr-Commit-Position: refs/heads/main@{#1014777}
> >
> > Bug: 1273285
> > Change-Id: I2dabf7eb995fd94837729de03e654edeab424b95
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3708965
> > Reviewed-by: Tao Wu <wutao@chromium.org>
> > Owners-Override: Zain Afzal <zafzal@google.com>
> > Auto-Submit: Alan Zhao <ayzhao@google.com>
> > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > Commit-Queue: Zain Afzal <zafzal@google.com>
> > Reviewed-by: Zain Afzal <zafzal@google.com>
> > Cr-Commit-Position: refs/heads/main@{#1014801}
>
> Bug: 1273285
> Change-Id: Id3c15c748b16693fdc40869470eb8ddd42fd1365
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3708297
> Reviewed-by: Zain Afzal <zafzal@google.com>
> Owners-Override: Zain Afzal <zafzal@google.com>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Reviewed-by: Callistus Tan <callistus@google.com>
> Cr-Commit-Position: refs/heads/main@{#1014809}

Bug: 1273285
Change-Id: Id5c979c5d0b6f3731d0b27d5ebcf25e10b8dc178
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3710730
Commit-Queue: Tao Wu <wutao@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Owners-Override: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1015100}
NOKEYCHECK=True
GitOrigin-RevId: c88460b202e6d25636dd7bfbbf0fc1531b6a0ac1
5 files changed
tree: 194fb674530718f577fa244699ed446f8339a8f4
  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: