Commit Graph

  • d60c3ac625 Fix spelling mistakes Vertexwahn 2023-05-02 20:13:10 +02:00
  • 3132b83a1a Add pointer-stability validation in btree. Evan Brown 2023-05-02 10:40:15 -07:00
  • c0d58db0c0 PR #1433: Fix incorrect timespec definition on 32-bit platforms with 64-bit time_t Oleg Lyovin 2023-05-02 08:51:36 -07:00
  • 502769bfc9 For Bazel builds, mark some of the low-level tests that are dependent on timing as flaky. Derek Mauro 2023-05-02 08:04:45 -07:00
  • 61cac1fabb Instantiate LogMessage::CopyToEncodedBuffer separately for literals and non-literals to save an instruction at each operator<<(string) callsite. Andy Getzendanner 2023-05-01 14:07:31 -07:00
  • 201c426c12 Merge pull request #1438 from Vertexwahn:fix-spelling Copybara-Service 2023-05-01 12:43:41 -07:00
  • e9a7eea615 Shrink most LOG callsites by one instruction (SysV x86_64 ABI) by dispatching to per-severity constructors and omitting the severity argument. Andy Getzendanner 2023-04-28 14:37:49 -07:00
  • 56c5fc6201 Introduce IfConstexpr(Else) utilities for use internally in abseil library implementation. Evan Brown 2023-04-28 13:15:48 -07:00
  • 9c32e50df8 Fix spelling mistakes Vertexwahn 2023-04-27 22:10:09 +02:00
  • 65109ecdf0 trivial: format some files using clang-format Patrick Xia 2023-04-27 09:23:15 -07:00
  • 8518869eb9 Merge pull request #1434 from Vertexwahn:fix-spelling Copybara-Service 2023-04-25 13:58:06 -07:00
  • 421a74dce4 Fix some spelling mistakes Vertexwahn 2023-04-24 20:13:05 +02:00
  • 4ffaea74c1 Merge pull request #1416 from AtariDreams:fill Copybara-Service 2023-04-24 09:59:58 -07:00
  • 0b49f8af79 Mutex: Remove MSVC 2015 workarounds Derek Mauro 2023-04-24 08:39:30 -07:00
  • 8bd7178b14 Adds template specialization for nullptr assertion of absl::AnyInvocable types. Abseil Team 2023-04-24 08:04:04 -07:00
  • 43e07a0ee0 Fix handling of CHECK macros in static analysis tools. Abseil Team 2023-04-24 07:41:57 -07:00
  • 70af93e915 AbslHashValue() applied to a C-style array simply decays the array to a pointer and hashes that, which is very unlikely to be what the author intended. Abseil Team 2023-04-20 20:36:17 -07:00
  • f8bf909108 Support pthread_cond_clockwait() and sem_clockwait() on Android for __ANDROID_API__ >= 30 Derek Mauro 2023-04-20 12:15:27 -07:00
  • 9686b7be44 Fix flaky test failures. Evan Brown 2023-04-20 11:50:15 -07:00
  • bc65499db4 Minor optimization in btree: avoid redundant stores to node->position when constructing nodes. Evan Brown 2023-04-20 10:52:01 -07:00
  • a26fc02d1e Prefer copy_n and fill_n over copy and fill where appropriate. Rose 2023-03-16 17:32:09 -04:00
  • e85868cbef Unify std type detection now that older compilers are no longer supported Derek Mauro 2023-04-19 09:01:27 -07:00
  • fb0debf583 Add ABSL_RAW_DLOG and ABSL_RAW_DCHECK macros Martijn Vels 2023-04-18 13:47:43 -07:00
  • 2d04ec1da2 Add configurability of the log Tag value on Android Abseil Team 2023-04-18 10:05:16 -07:00
  • f36183604e Add an API to clear the saved LogBacktraceAt location, and call it when setting an empty or invalid flag value. Andy Getzendanner 2023-04-18 00:29:00 -07:00
  • 387e1bf58c Optional: Remove workaround for lack of support for inheriting constructors Derek Mauro 2023-04-14 13:11:39 -07:00
  • 2ed3e75e11 Span: Remove MSVC 2015 workaround Derek Mauro 2023-04-14 11:49:24 -07:00
  • bce5bec551 Reland "Get rid of tail padding within absl::Duration. This reduces memory usage needs when storing duration in containers (e.g. vector<absl::Duration> uses 25% less memory), and allows classes with absl::Duration fields to fit other stuff in memory previously used by tail padding (e.g. std::optional<absl::Duration> is now 16 bytes instead of 24)." Abseil Team 2023-04-14 04:27:57 -07:00
  • 124e4f4edd Spell out the meaning of non-reentrant/non-recursive. Thomas Köppe 2023-04-13 15:04:19 -07:00
  • c5f310de3b Don't override clock_gettime in the KernelTimeout and Waiter tests under sanitizers. The overrides break the sanitizers. Derek Mauro 2023-04-13 10:25:13 -07:00
  • c23acb9b56 Synchronization: Consolidate the logic for whether steady clocks are supported for relative timeouts Derek Mauro 2023-04-12 13:26:48 -07:00
  • 32d314d0f5 Set executable bit to the *.bat files Abseil Team 2023-04-12 10:50:30 -07:00
  • 2126f02398 In debug mode, detect cases of btree comparators that violate transitivity, i.e. comp(A,B) && comp(B,C) -> comp(A,C). Evan Brown 2023-04-12 09:57:09 -07:00
  • cb204d6d9c Replace absl::type_traits_internal::is_trivially_copyable with std::is_trivially_copyable Derek Mauro 2023-04-12 09:37:39 -07:00
  • 3a46229c3c Name anonymous memory allocations on Linux. Abseil Team 2023-04-12 06:54:17 -07:00
  • 5ad663b790 inlined_vector: fix incorrect restrictions on the copy constructor fast path. Aaron Jacobs 2023-04-11 19:54:23 -07:00
  • 156b10f550 inlined_vector: fix incorrect restrictions on the swap fast path. Aaron Jacobs 2023-04-11 19:14:45 -07:00
  • 2e47068db2 inlined_vector: fix incorrect restrictions on the move-assignment fast path. Aaron Jacobs 2023-04-11 17:58:22 -07:00
  • dd89c56c2a inlined_vector: relax the requirements on the move-construction fast path. Aaron Jacobs 2023-04-11 17:54:53 -07:00
  • 2927340217 Extend ABSL_ATTRIBUTE_NO_SANITIZE_ADDRESS to support HWASAN Abseil Team 2023-04-10 14:57:45 -07:00
  • 3ac6009441 Add a pull request template Derek Mauro 2023-04-10 08:55:07 -07:00
  • 1a72ea7bb8 Synchronization: Support true relative timeouts using the POSIX proposed standard pthread_cond_clockwait() and sem_clockwait(). These are currently implemented in glibc >= 2.30. Derek Mauro 2023-04-08 09:52:09 -07:00
  • 42a3c030c9 Document that wrapping an empty std::function creates a non-empty AnyInvocable Dino Radakovic 2023-04-06 12:51:34 -07:00
  • e73b9139ee Use stdout for help output even in case of errors. Gennadiy Rozental 2023-04-06 11:43:21 -07:00
  • 0bc6509b8a Fix typo in comment Dino Radakovic 2023-04-06 11:41:42 -07:00
  • a880427b38 Synchronization: Support true relative timeouts on Apple platforms using the non-portable pthread_cond_timedwait_relative_np() Derek Mauro 2023-04-06 08:19:11 -07:00
  • d7228036ab Add commentary for universal time scale Abseil Team 2023-04-04 20:04:31 -07:00
  • dc51d35fe7 Raise the MSVC floor to MSVC 2019 (16.0) in accordance with https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md Derek Mauro 2023-04-03 15:03:22 -07:00
  • c4127a721f Add heterogeneous lookup support for wstring/u16string/u32string. Abseil Team 2023-04-03 14:02:48 -07:00
  • 88f0473a91 Remove ABSL_SKIP_TIME_TESTS_BROKEN_ON_MSVC_OPT. These tests were broken on MSVC 2017, but MSVC 2017 is no longer supported Derek Mauro 2023-04-03 12:14:51 -07:00
  • 0244af22ec Internal cleanup Abseil Team 2023-04-03 12:07:42 -07:00
  • 486ec29b7c Release the batch files used to test Abseil with MSVC Derek Mauro 2023-04-03 07:16:06 -07:00
  • e46a87a16e Change OnlyLiteralZero to not trigger modernize-use-nullptr Abseil Team 2023-04-01 05:33:43 -07:00
  • 5102fe1680 inlined_vector: optimize the move-assignment fast path. Aaron Jacobs 2023-03-31 22:03:31 -07:00
  • ea980d1963 inlined_vector: stop sharing the memcpy-based move-assignment path. Aaron Jacobs 2023-03-31 21:57:32 -07:00
  • acfd33824a inlined_vector: remove excess restrictions on copy constructor fast path. Aaron Jacobs 2023-03-31 15:00:26 -07:00
  • 6a37c26abf Add clang-cl build Derek Mauro 2023-03-31 10:25:57 -07:00
  • d6a7cba217 Add a clang-cl build Derek Mauro 2023-03-31 08:08:12 -07:00
  • 0b6f0003e4 Clarify code comment to avoid confusion. Abseil Team 2023-03-30 13:15:38 -07:00
  • d79361faf6 Changes necessary to support clang-cl Derek Mauro 2023-03-30 12:09:23 -07:00
  • 2d31912897 Properly calculate frame sizes on Aarch64 Abseil Team 2023-03-30 11:00:26 -07:00
  • 61b059f79e inlined_vector: fix incorrect conditions for move constructor fast paths. Aaron Jacobs 2023-03-29 17:35:26 -07:00
  • 0d24c40758 Import of CCTZ from GitHub. Abseil Team 2023-03-28 19:05:47 -07:00
  • ed7c1ee121 Fix flakiness issues in timing tests. Evan Brown 2023-03-27 23:45:25 -07:00
  • 6b4af2497b type_traits: don't use __is_trivially_relocatable with Clang on Windows. Aaron Jacobs 2023-03-27 16:08:18 -07:00
  • 0dc94309d3 inlined_vector: destroy all types with trivial destructors efficiently. Aaron Jacobs 2023-03-27 14:01:23 -07:00
  • 0390de901b absl int128: avoid shifting signed integer by a number of bits greater than or equal to the precision of the operand Abseil Team 2023-03-27 13:09:57 -07:00
  • 6596e8e18a Import of CCTZ from GitHub. Abseil Team 2023-03-27 11:50:45 -07:00
  • b971ac5250 Fix the implementation of OnlyLiteralZero (#1420) 20230125.2 Derek Mauro 2023-03-27 10:58:21 -04:00
  • b6a1039bfc type_traits: provide a better fallback for is_trivially_relocatable. Abseil Team 2023-03-24 17:59:28 -07:00
  • 32e0395f38 inlined_vector: get rid of IsMemcpyOk. Abseil Team 2023-03-24 17:40:34 -07:00
  • c9f49460fa type_traits: touch up the docs for is_trivially_relocatable. Abseil Team 2023-03-24 17:03:36 -07:00
  • c92b6ce052 inlined_vector_test: add coverage of moving vectors of unique pointers. Abseil Team 2023-03-24 16:52:03 -07:00
  • 700e786e60 Hash support for std::wstring_view/u16string_view/u32string_view Abseil Team 2023-03-24 11:49:57 -07:00
  • 7b9f660fc3 type_traits_test: add better coverage of is_trivially_relocatable. Abseil Team 2023-03-24 07:48:17 -07:00
  • 1bd60dca52 Add a call to handle usage flags in case of unrecognized flags Gennadiy Rozental 2023-03-24 02:24:00 -07:00
  • b6de7b8032 Make ABSL_ATTRIBUTE_NO_UNIQUE_ADDRESS work on MSVC Derek Mauro 2023-03-23 10:12:38 -07:00
  • 0a1e03a5f6 Import of CCTZ from GitHub. Abseil Team 2023-03-23 07:10:33 -07:00
  • ac19f5bc88 Internal Code Change Abseil Team 2023-03-23 05:42:19 -07:00
  • 276f88cb77 Add an implementation of Waiter that uses std::mutex/std::condition_variable Derek Mauro 2023-03-21 07:30:38 -07:00
  • 819272485a Change ParseAbseilFlagsOnly function to include handling of usage flags and exit on syntax errors. Gennadiy Rozental 2023-03-21 01:04:30 -07:00
  • 396e9764cd Synchronization: Refactor Waiter to allow us to write tests Derek Mauro 2023-03-20 14:10:11 -07:00
  • e5067964ad Fix an implicit truncation warning under MSVC 32-bit Derek Mauro 2023-03-20 12:18:53 -07:00
  • f959f6ba97 Add missing #include <exception> for std::terminate Abseil Team 2023-03-20 08:05:04 -07:00
  • efeb95f449 Add ABSL_UNREACHABLE() to ABSL_RAW_LOG when severity is FATAL Wiktor Garbacz 2023-03-20 01:10:59 -07:00
  • 0697762c62 Increase the timeout of Windows for the kernel timeout tests. Windows tests often run in Emulation, and even with KVM we can still timeout. Tom Rybka 2023-03-16 12:20:11 -07:00
  • 3853b482ca Define ABSL_HAVE_DATAFLOW_SANITIZER Dave MacLachlan 2023-03-16 09:24:51 -07:00
  • 50a9e2b27e Be more consistent in the documentation and variable declarations for base64 escaping vs unescaping: * Move table documenting escaping conversions to be next to the internal escaping code that implements it. Mention it from the internal _un_escaping code (which reverses it) too. * Centralize the two arrays which map from normal chars to escaped chars (k(WebSafe)Base64Chars), and make bidirectional documentation links between them and their reverse (unescaping) maps (kUn(WebSafe)Base64). * Remove redundant list of escaping/unescaping methods in the public escaping.cc. Abseil Team 2023-03-16 09:24:49 -07:00
  • 256cc61a2d Enhance documentation about absl::Duration integer division, which truncates, and floating-point multiplication/division, which rounds. Abseil Team 2023-03-15 21:34:44 -07:00
  • ab0e3e8e1f Add StrContainsIgnoreCase() to strings/match.h; all the other case-sensitive methods in this file have corresponding case-insensitive ones. Greg Falcon 2023-03-15 14:41:08 -07:00
  • a8f3b9d611 Remove unreleased iterator library from README.md Derek Mauro 2023-03-15 12:22:43 -07:00
  • 7fb43d7318 Workaround for MSVC warning that designated initializers are a C++20 feature Derek Mauro 2023-03-15 12:07:35 -07:00
  • e5b65f172a Avoid uninitialized value in call_once implementation. Henner Zeller 2023-03-15 11:09:56 -07:00
  • 6d41348a3c Synchronization: Add support for true relative timeouts using monotonic clocks on Linux when the implementation uses futexes Derek Mauro 2023-03-14 08:41:26 -07:00
  • 6db185d8e2 Correct semantic and documentation for the ReportUnrecognizedFlags interface Gennadiy Rozental 2023-03-13 21:22:11 -07:00
  • 52578edd89 Support AbslStringify in absl::Time and absl::Duration. Abseil Team 2023-03-13 17:04:58 -07:00
  • 7f47b00fca Synchronization: Change KernelTimeout to always store absolute timeouts, but when a relative timeout is provided, the timeout is an absolute timeout against a steady clock (when possible). This allows methods that return relative timeouts to automatically recompute the remaining duration, for instance, on suprious wakeups. Derek Mauro 2023-03-13 13:24:00 -07:00
  • ac8afe6c78 Performance improvement for absl::AsciiStrToUpper() and absl::AsciiStrToLower() Abseil Team 2023-03-13 11:44:25 -07:00
  • 34e29aae4f Add ABSL_ATTRIBUTE_NO_UNIQUE_ADDRESS helper. Chris Kennelly 2023-03-13 10:10:12 -07:00
  • d8933b836b [absl] Update documentation to reflect hash support for std::wstring, std::u16string and std::u32stringstrings Lawrence Wolf-Sonkin 2023-03-10 13:38:07 -08:00