summaryrefslogtreecommitdiff
path: root/absl
Commit message (Collapse)AuthorAge
...
* | The previous code was using `memmove` under the hood (`string::append`).Gravatar Abseil Team2023-06-09
| | | | | | | | | | | | | | This patch makes it use `memcpy` for performance and consistency with other overloads. PiperOrigin-RevId: 539079130 Change-Id: I5aea9dd9b8a1ce708c787df7d6c9a75ae419c484
* | Implement GetTID for NACL platform.Gravatar Abseil Team2023-06-09
| | | | | | | | | | | | | | in NACL pthread_self() returns a pointer that isn't directly convertible to arithmetic type. PiperOrigin-RevId: 539023020 Change-Id: I3745ec5565f3a99ccb1d9df12c27a80e57ca4755
| * Use InlinedVectorGravatar pateldeev2023-06-08
|/
* Merge pull request #1471 from wenshan1:blan-add-VxWorks-supportGravatar Copybara-Service2023-06-08
|\ | | | | | | | | PiperOrigin-RevId: 538778978 Change-Id: I0c04b09987eb4d97892825e3c994656d4e300f60
* \ Merge pull request #1468 from Romain-Geissler-1A:silence-aligned_storage-warningGravatar Copybara-Service2023-06-07
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 538651091 Change-Id: Id1aa7ab287beb252f4826f70e26b7e3bfa80c462
| | * Add VxWorks supportGravatar Bin Lan2023-06-08
| | |
* | | Remove redundant redeclarations causing -Wredundant-decls warningsGravatar Derek Mauro2023-06-07
| | | | | | | | | | | | | | | | | | | | | Fixes #1469 PiperOrigin-RevId: 538534014 Change-Id: Iab84f73c0a0665355b614e85c62f686dc54c8671
* | | Merge pull request #1458 from juergbi:aixGravatar Copybara-Service2023-06-07
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 538488164 Change-Id: I680dcbc2f27dca3beba416b3cd0a55943751cf4c
* | | | Update XML output to properly print special characters. Non printable ↵Gravatar Gennadiy Rozental2023-06-07
| |_|/ |/| | | | | | | | | | | | | | | | | characters are skipped in output. All the "whitespace-like" (including \t, \r, \n) characters printed as plain space ' '. PiperOrigin-RevId: 538479923 Change-Id: I62dff39bb21f376d00a7b9480f8f1d31d7015e45
* | | Import of CCTZ from GitHub.Gravatar Abseil Team2023-06-06
| | | | | | | | | | | | | | | PiperOrigin-RevId: 538241594 Change-Id: Ie6f0d913bcf07dea2f33e47198ba952b3800d70e
| | * Silence std::aligned_storage warnings in C++23 mode.Gravatar Romain Geissler2023-06-06
| | | | | | | | | | | | | | | | | | This is only a workaround, working only with gcc/clang, while waiting for a better long term fix not using std::aligned_storage, which is tracked by b/260219225.
* | | Add a unit test that captures the current behavior of formatting of char ↵Gravatar Greg Falcon2023-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | types and char-backed enum types through StrCat(), StrFormat("%v"), and Substitute(). This test allows us to modify the behavior in this space without introducing undesired changes elsewhere. PiperOrigin-RevId: 537981963 Change-Id: Icda91b66efcc0dc8c263011b137e130a3db2dc19
* | | Import of CCTZ from GitHub.Gravatar Abseil Team2023-06-05
| |/ |/| | | | | | | PiperOrigin-RevId: 537825067 Change-Id: I3ce8712d5130068fb7d77b563eb502e2e9560810
* | Lifetime checks for `absl::StrSplit()`Gravatar Abseil Team2023-06-02
| | | | | | | | | | PiperOrigin-RevId: 537400816 Change-Id: I06794a6b8b6a441e34121047024380190d42869a
* | `absl`: Replace `absl::remove_cv_t<absl::remove_reference_t<T>>` with ↵Gravatar Dino Radakovic2023-06-02
| | | | | | | | | | | | | | `absl::remove_cvref_t<T>` PiperOrigin-RevId: 537372070 Change-Id: I46ff6e42856aea2cd8da6ff7105cf58613603dd4
* | Adding support for int128 and uint128 flag typesGravatar Abseil Team2023-06-01
| | | | | | | | | | PiperOrigin-RevId: 537120102 Change-Id: I7952e53aca10319eb433e4c4d60cf3d7fe74d19a
* | Merge pull request #1457 from juergbi:time-threadsGravatar Copybara-Service2023-06-01
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 537088042 Change-Id: I6ef219a1a76baf3a751a6084a8fb8639c9bdac51
* | | Convert `raw_hash_set` comments from imperative to indicative mood.Gravatar Bradley C. Kuszmaul2023-05-31
| | | | | | | | | | | | https://google.github.io/styleguide/cppguide.html#Function_Comments
* | | Merge pull request #1462 from kuszmaul:fix-typoGravatar Copybara-Service2023-05-31
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 536785792 Change-Id: I2963dea81a75b01b7275d784f6a2908816d0c7bf
* | | | Switch from perror to ABSL_INTERNAL_LOG.Gravatar Abseil Team2023-05-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivation is for WebAssembly to avoid perror which in turn requires file system emulation. PiperOrigin-RevId: 536737294 Change-Id: I5177064c9451fb630ec5e9d0c0a0679fabd98afa
* | | | For web assembly, implement WriteToStderr as emscripten_err.Gravatar Abseil Team2023-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids the need to use filesystem APIs just to write to stderr, which emscripten implements the same as this under the hood. PiperOrigin-RevId: 536525710 Change-Id: I0a647a4593eacfba324505b6e8c4acfb577ac839
| * | | Typo gardeningGravatar Bradley C. Kuszmaul2023-05-30
| | | |
* | | | Disable the use of the fast GetCurrentTimeNanos() algorithm based onGravatar Derek Mauro2023-05-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the cyclecounter by default, since it may be unsafe in some situations (for example, if the system may enter a sleep state). Fixes #1460 PiperOrigin-RevId: 535641718 Change-Id: I41c9cc4bc7a8ae7280ff9df00abd57668205045b
* | | | Add support for stateful allocators to absl::FixedArray.Gravatar Abseil Team2023-05-26
| | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 535534819 Change-Id: Iccf8da3e0b084131e4c0dba205f3e190d3a66f4e
* | | | Implement a better GetTID on Apple platforms, and a better fallback too.Gravatar Andy Getzendanner2023-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The fallback isn't totally portable, even within POSIX, but we can special case any future platforms where it's not just like this change does for Apple. PiperOrigin-RevId: 535324103 Change-Id: Ib628925c4946b6c112373678fe37e9bb44259090
* | | | Split absl/hash/hash_test.cc into two filesGravatar Benjamin Barenblat2023-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hash_test.cc leans heavily on INSTANTIATE_TYPED_TEST_SUITE_P, which is quite memory- and CPU-hungry. Split a few heavyweight tests into a new hash_instantiated_test.cc, reducing peak RAM consumption (or, on multicore systems, compilation time). PiperOrigin-RevId: 535305679 Change-Id: Ic204da0a47c749c3f7db5f902ade8d74ed3043bb
* | | | Note that AsyncSignalSafeWriteToStderr preserves errno, and inline one use ↵Gravatar Andy Getzendanner2023-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | of it into a lambda. PiperOrigin-RevId: 535245982 Change-Id: I816f60c8b6476536df6836500f01c9a3ad88ddd4
* | | | Merge pull request #1454 from niranjan-nilakantan:niranjan-nilakantan/issue1450Gravatar Copybara-Service2023-05-24
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | PiperOrigin-RevId: 534841675 Change-Id: I6fbee6f0fe61d8dd51c9c7d93c3b47684a2f4d9f
* | | | | fill ABSL_INTERNAL_(DISABLE|RESTORE)_DEPRECATED_DECLARATION_WARNING macro ↵Gravatar Abseil Team2023-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for clang PiperOrigin-RevId: 534824761 Change-Id: I0ab78fcb211bc5df756fb581761ed8febc3d18fd
| | | | * absl/status: Fix build on AIXGravatar Jürg Billeter2023-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `_LINUX_SOURCE_COMPAT` needs to be defined to fix absl/status/status.cc:494:5: error: duplicate case value 494 | case ENOTEMPTY: // Directory not empty | ^~~~ absl/status/status.cc:480:5: note: previously used here 480 | case EEXIST: // File exists | ^~~~
| | | | * absl/base: Fix build on AIXGravatar Jürg Billeter2023-05-24
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | The AIX assembler doesn't support numeric labels. Use a relative jump instead to fix Assembler: /tmp/ccw16WCt.s: line 25: Error In Syntax
| | | * CMake: Link `time_zone` library to `Threads::Threads`Gravatar Jürg Billeter2023-05-24
| |_|/ |/| | | | | | | | `time_zone_impl.cc` uses `std::mutex`.
* | | Merge pull request #1455 from juergbi:solarisGravatar Copybara-Service2023-05-23
|\ \ \ | | | | | | | | | | | | | | | | PiperOrigin-RevId: 534619764 Change-Id: Ied99569176766f9708d5504eac9c7024cdcfd64b
* | | | Migrate most RAW_LOGs and RAW_CHECKs in tests to regular LOG and CHECK.Gravatar Andy Getzendanner2023-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-RAW_ versions provide better output but weren't available when most of these tests were written. There are just a couple spots where RAW_ is actually needed, e.g. signal handlers and malloc hooks. Also fix a couple warnings in layout_test.cc newly surfaced because the optimizer understands CHECK_XX differently than INTERNAL_CHECK. PiperOrigin-RevId: 534584435 Change-Id: I8d36fa809ffdaae5a3813064bd602cb8611c1613
* | | | Add a declaration for __cpuid for the IntelLLVM compiler.Gravatar niranjan-nilakantan2023-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1452 __cpuid is declared in intrin.h, but is excluded on non-Windows platforms. We add this declaration to compensate. Fixes #1358 PiperOrigin-RevId: 534449804 Change-Id: I91027f79d8d52c4da428d5c3a53e2cec00825c13
| * | | absl/debugging: Fix build on SolarisGravatar Jürg Billeter2023-05-23
|/ / /
* | | CI: Move the GCC-latest testing to GCC 13.1 on LinuxGravatar Derek Mauro2023-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes an upgrade to CMake 3.26.3 and Bazel 6.2.0 This change includes support for both GCC 12 and 13 since we were only testing GCC 11 before this change. PiperOrigin-RevId: 534235753 Change-Id: I4183a02469b1c3425c52a31b71fcefe403315a42
* | | Rollback of add a declaration for __cpuid for the IntelLLVM compiler.Gravatar Abseil Team2023-05-22
| | | | | | | | | | | | | | | PiperOrigin-RevId: 534213948 Change-Id: I56b897060b9afe9d3d338756c80e52f421653b55
| * | Clone the Clang flags section for IntelLLVM.Gravatar Niranjan Nilakantan2023-05-22
|/ / | | | | | | | | | | | | | | | | | | This uses the same flags that Clang based builds use for Windows/Linux. A future change will add floating point related flags and some warning suppressions. So, we clone the section rather than just change the check at line 77. Fixes #1450
* | Merge pull request #1452 from niranjan-nilakantan:niranjan-nilakantan/issue1358Gravatar Copybara-Service2023-05-22
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 534179290 Change-Id: I9ad24518cc6a336fbaf602269fb01319491c8b60
* | | Import of CCTZ from GitHub.Gravatar Abseil Team2023-05-22
| | | | | | | | | | | | | | | PiperOrigin-RevId: 534150392 Change-Id: I4c0c111202178031e08d9edad3a4501800d924f0
* | | Fix endianess in FastIntToBufferGravatar Abseil Team2023-05-22
| | | | | | | | | | | | | | | PiperOrigin-RevId: 534117706 Change-Id: Id48f1538e71d30286675eb32c9fb3e6f47774aa8
* | | Rename ABSL_*_IMPL macros to match the other ABSL_LOG_INTERNAL_* macros and ↵Gravatar Andy Getzendanner2023-05-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | to make sure it's clear that they're internal. Also rename the log and check test files from .h to .inc per https://google.github.io/styleguide/cppguide.html#Self_contained_Headers. PiperOrigin-RevId: 533603350 Change-Id: Iad5d8b683e33b63784cc8e64b84da09f5fc3bf1e
* | | Optimize absl::StrCat for integersGravatar Abseil Team2023-05-19
| | | | | | | | | | | | | | | | | | | | | Previous implementation used a lookup table of 200 bytes which, if not in L1 cache, could cause memory stalls and consumes 3-4 cache lines. This is suboptimal in real world scenarious. We are going to use a purely scalar version of merging 2/4/8 bytes together. PiperOrigin-RevId: 533576619 Change-Id: Icd730d18536f7eb35979b62582f6edf86b786019
* | | Import of CCTZ from GitHub.Gravatar Derek Mauro2023-05-19
| | | | | | | | | | | | | | | PiperOrigin-RevId: 533455360 Change-Id: Ia95b225f8c186a831801f1ee008d7a5c0fff544b
| * | Add a declaration for __cpuid for the IntelLLVM compiler.Gravatar Niranjan Nilakantan2023-05-18
|/ / | | | | | | | | | | | | | | __cpuid is declared in intrin.h, but is "excluded" on non-Windows platforms. We add this declaration to compensate. Fixes #1358
* | Merge pull request #1448 from glandium:clangGravatar Copybara-Service2023-05-18
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 533121605 Change-Id: I82390045985db5db56e93c40eae24cdcd93e3ab4
| * | Use UB impl of launder on when using clang < 8 and c++17Gravatar Mike Hommey2023-05-18
| | | | | | | | | | | | | | | | | | | | | libstdc++'s definition of std::launder places it behind a check for __builtin_launder, which is not available before clang 8. Fixes: #1309
* | | Add compiler deprecation warnings for absl::ConvertDateTime() and ↵Gravatar Derek Mauro2023-05-17
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | absl::FromDateTime(). These have been marked deprecated in the comments for some time, (since f340f773edab951656b19b6f1a77c964a78ec4c2) but the warnings were never enabled. A warning suppression is enabled for Abseil code so that when we declare types in our code, we don't get a warning. PiperOrigin-RevId: 532891102 Change-Id: Ife0c5696a061ea44769e02869e4e3d1196e86f9d
* | Add non-public API for internal usersGravatar Eric Fiselier2023-05-16
| | | | | | | | | | PiperOrigin-RevId: 532553508 Change-Id: I813841ff3e5085b64c9b02ca41897bf7f6a8570e