1. 19 Nov, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 2103fd9a
      Abseil Team authored
      d447fdcb801036cf08197eece193a5a706661120 by Gennadiy Rozental <rogeeff@google.com>:
      Eliminate the need for static function holding help message. This decreases the cost of ABSL_FLAG abstraction by 120 bytes under clang.
      PiperOrigin-RevId: 281107806
      0aa6b91189f0e8b2381438c33465673a7ae02487 by Derek Mauro <dmauro@google.com>:
      Disable the weak symbol CCTZ extension in the time test_util
      on MinGW, which does not support it.
      PiperOrigin-RevId: 280719769
      67322c41c3e776eb541de90fa4526bdb49422eb6 by Abseil Team <absl-team@google.com>:
      Tune PeriodicSampler implementation (for internal-use only)
      PiperOrigin-RevId: 280708943
      3a48c346340c7ed03816645cd327e1ff07729aa4 by Abseil Team <absl-team@google.com>:
      Clean up public headers not to have warnings for "-Wcomma"
      PiperOrigin-RevId: 280695373
      981acd1ef3b13a83a84f04f11c8931f4ed4451c9 by Matthew Brown <matthewbr@google.com>:
      Release absl::int128.
      PiperOrigin-RevId: 280690817
      d30fae9d2ec30b81322d2eb5afe7e13e45b4b422 by Derek Mauro <dmauro@google.com>:
      Fix -Wundef warnings in random platform detection
      PiperOrigin-RevId: 280669598
      GitOrigin-RevId: d447fdcb801036cf08197eece193a5a706661120
      Change-Id: Ie5e10e567c54b7de211833607689f233d4ddf734
  2. 15 Nov, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 3df7b52a
      Abseil Team authored
      3a871e2cd854a46770a9416189953b2b38980bcf by Andy Getzendanner <durandal@google.com>:
      Import of CCTZ from GitHub.
      PiperOrigin-RevId: 280660534
      f5a155fb056dcf68b089c21aebb5bf5159dc0eb3 by Tom Manshreck <shreck@google.com>:
      Nit: fix format of algorithm.h comments
      PiperOrigin-RevId: 280474139
      08b117a18353c0daf51b33b45100e5a007e5ab0c by Abseil Team <absl-team@google.com>:
      Allow absl::Notification::HasBeenNotified to be inlined.
      PiperOrigin-RevId: 280453271
      26d33dd2bad72945f1987f7b2669dbec3a6247e6 by Derek Mauro <dmauro@google.com>:
      Fix unused variable warnings on Windows
      PiperOrigin-RevId: 280324417
      907e9b23029be683af3b443bafd6a577a595922f by Abseil Team <absl-team@google.com>:
      PeriodicSampler implementation (for internal-use only)
      PiperOrigin-RevId: 280257168
      GitOrigin-RevId: 3a871e2cd854a46770a9416189953b2b38980bcf
      Change-Id: I6e2978cae22a6adc41c0577e5c21355e9db7c8f5
  3. 13 Nov, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · fa8c7518
      Abseil Team authored
      049ac45508e335c6f010f2d28d71016b9fa65b4e by Derek Mauro <dmauro@google.com>:
      Fix librt detection
      PiperOrigin-RevId: 280207723
      6382c3a9fb2643af9dc031f92ca846c4a78e249c by Andy Getzendanner <durandal@google.com>:
      Fix Conan builds
      Import of https://github.com/abseil/abseil-cpp/pull/400
      PiperOrigin-RevId: 280025424
      aebcd52b1686ac82663a8d0193b60d0122a43372 by Samuel Benzaquen <sbenza@google.com>:
      Enable the assertion in the iterator's operator== and operator!=
      PiperOrigin-RevId: 279998951
      5b61d909e2159ac6fd45e0e456818db1e725ecd1 by Derek Mauro <dmauro@google.com>:
      Add best effort support for compiling much of Abseil with MinGW.
      This involves disabling ABSL_ATTRIBUTE_WEAK and adding link flags.
      A change to CCTZ is still necessary.
      Tests were not run yet, but most of them now build.
      PiperOrigin-RevId: 279966541
      4336f8b10cff906e2defdd7d1d449cde4907da5d by Abseil Team <absl-team@google.com>:
      Add comments and relax memory orders in base_internal::CallOnceImpl.
      Add a comment to document the memory order guarantee if
      base_internal::SpinLockWait() is called and returns kOnceDone.
      Add a comment for the load/store sequence in base_internal::CallOnceImpl
      based on Mike Burrows' explanation.
      The atomic load of 'control' in the #ifndef NDEBUG block does not need
      std::memory_order_acquire. It can use std::memory_order_relaxed.
      The atomic compare_exchange_strong of 'control' does not need
      std::memory_order_acquire in the success case. It can use
      PiperOrigin-RevId: 279814155
      407de3a5e9af957cded54a136ca0468bde620d4d by Abseil Team <absl-team@google.com>:
      Added a script to generate abseil.podspec from all BUILD.bazel files automatically.
      PiperOrigin-RevId: 279811441
      26139497d4a363d6c7bc989c554da593e8819a07 by Derek Mauro <dmauro@google.com>:
      Add missing copyright and Apache License to //absl/functional/BUILD.bazel
      PiperOrigin-RevId: 279795227
      98ed625b02af6e5834edf52a920d8ca2dab4cd90 by Matt Kulukundis <kfm@google.com>:
      Switch the implementation of hashtablez to *only* work on platforms that have a
      The old case is very slow (global mutex) and nobody collects data from that
      configuration anyway.
      PiperOrigin-RevId: 279775149
      07225900ef672c005c38f467ad3f92f38d0922b3 by Derek Mauro <dmauro@google.com>:
      Remove the minumum glibc version check
      PiperOrigin-RevId: 279750412
      ec09956a951b4f52228ecc81968b8db7ae19ed15 by Derek Mauro <dmauro@google.com>:
      CMake only: link with -lrt to support older glibc versions
      PiperOrigin-RevId: 279741661
      97b113fb2e8246f6152c36330ba13793b37154b6 by Xiaoyi Zhang <zhangxy@google.com>:
      Internal change.
      PiperOrigin-RevId: 279390188
      ca8f72f2721546cc9b01bd01b2ea144962e6e0c5 by Andy Getzendanner <durandal@google.com>:
      Expose PutTwoDigits for internal use within Abseil.
      PiperOrigin-RevId: 279374239
      14c6384cc03bbdfdefd2e4b635f104af5dd7e026 by Derek Mauro <dmauro@google.com>:
      Remove log_severity sources from the base target.
      They are already compiled as part of a separate library.
      PiperOrigin-RevId: 279372619
      3c5d926c718f8bf394e3bee87b6ba8d94601e0d3 by Abseil Team <absl-team@google.com>:
      s/indepdent/independent/g in SimpleAtof's documentation.
      PiperOrigin-RevId: 279350836
      de2c44be8a8edf9efa1fe2007cba3564f3e5b0b8 by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 279346990
      2ba078341423fcf6d0ba5ca1831f86570a26e615 by Samuel Benzaquen <sbenza@google.com>:
      Add hash support for std::wstring, std::u16string and std::u32string.
      PiperOrigin-RevId: 279320672
      3272d3ffcfa55283a04f90e5868701912da95ef7 by Andy Soffer <asoffer@google.com>:
      Removing a bunch of __restricts that amount to no performance differences. One
      of these is the cause of https://github.com/abseil/abseil-cpp/issues/396. In
      particular, in one of the Vector128Store functions, restricts on two pointers
      that were indeed aliased seems to be the root cause of the issues.
      Closes #396
      PiperOrigin-RevId: 279318999
      342f338ab31cc24344d5de8f28cf455bbb629a17 by Jorg Brown <jorg@google.com>:
      Support uint128 in SimpleAtoi
      PiperOrigin-RevId: 279234038
      81cb0a04cf2dc4515d303679fc60968712191571 by Derek Mauro <dmauro@google.com>:
      Change the check for futex availability to support older Linux systems
      PiperOrigin-RevId: 279147079
      cb4ca4aa4c8d2d710a5d483c56c4ce4f979e14b1 by Abseil Team <absl-team@google.com>:
      Add IWYU pragma: export for int128 .inc files.
      PiperOrigin-RevId: 279107098
      b8df86ef610c366729f07326c726f3e34817b4dd by Abseil Team <absl-team@google.com>:
      An optimization for Waiter::Post() in the SEM waiter mode.
      Like the FUTEX waiter mode, Waiter::Post() only needs to call Poke() if
      it incremented the atomic variable from 0.
      PiperOrigin-RevId: 279086133
      GitOrigin-RevId: 049ac45508e335c6f010f2d28d71016b9fa65b4e
      Change-Id: I4c1a4073fff62cb6a1fcb1c104aa7d62dad588c2
  4. 12 Nov, 2019 1 commit
  5. 05 Nov, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · e96ae220
      Abseil Team authored
      074a799119ac881b8b8ce59ef7a3166d1aa025ac by Tom Manshreck <shreck@google.com>:
      nit: Add return info for StrCat
      PiperOrigin-RevId: 278647298
      d58a2a39ab6f50266cc695506ba2e86bdb45d795 by Mark Barolak <mbar@google.com>:
      Stop suppressing no-nested-anon-types warnings because there aren't actually any warnings to suppress.
      PiperOrigin-RevId: 278440548
      445051bd280b9a6f608a8c80b3d7cafcc1377a03 by Abseil Team <absl-team@google.com>:
      ResetThreadIdentity does not need to clear identity->waiter_state.
      ResetThreadIdentity is only called by NewThreadIdentity. NewThreadIdentity is
      only called by CreateThreadIdentity. CreateThreadIdentity calls
      PerThreadSem::Init, which initializes identity->waiter_state, immediately after
      calling NewThreadIdentity. Therefore ResetThreadIdentity does not need to clear
      PiperOrigin-RevId: 278429844
      c2079b664d92be40d5e365abcca4e9b3505a75a6 by Abseil Team <absl-team@google.com>:
      Delete the f->header.magic check in LowLevelAlloc::Free().
      The f->header.magic check in LowLevelAlloc::Free() is redundant, because
      AddToFreeList() will immediately perform the same check.
      Also fix a typo in the comment that documents the lock requirements for
      Next(). The comment should say "L >= arena->mu", which is equivalent to
      NOTE: LowLevelAlloc::Free() performs the f->header.magic check without
      holding the arena lock. This may have caused the TSAN data race warning
      reported in bug 143697235.
      PiperOrigin-RevId: 278414140
      5534f35ce677165700117d868f51607ed1f0d73b by Greg Falcon <gfalcon@google.com>:
      Add an internal (unsupported) PiecewiseCombiner class to allow hashing buffers piecewise.
      PiperOrigin-RevId: 278388902
      GitOrigin-RevId: 074a799119ac881b8b8ce59ef7a3166d1aa025ac
      Change-Id: I61734850cbbb01c7585e8c736a5bb56e416512a8
  6. 04 Nov, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 20de2db7
      Abseil Team authored
      6ac972ce1a042a8925c20cb8b76897b018990de4 by Abseil Team <absl-team@google.com>:
      Improve failure reports in signal handler test.
      PiperOrigin-RevId: 278377121
      GitOrigin-RevId: 6ac972ce1a042a8925c20cb8b76897b018990de4
      Change-Id: I74c8cd5c633f2dc77d533556184071a9af6e2768
  7. 31 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 846e5dbe
      Abseil Team authored
      90ecacd2a3db96ee64ef23af37a80fad404e2b32 by Gennadiy Rozental <rogeeff@google.com>:
      Fixes MSVC regression by making MSVC version of class Flag into an aggregate type.
      PiperOrigin-RevId: 277767054
      018f3b040df51d91a988fa146fee163721e605e9 by Abseil Team <absl-team@google.com>:
      Change libstdc++ lacking std::unique_ptr check from a gcc version check to based on feature macros.
      PiperOrigin-RevId: 277736042
      475844775ae343e2414318f08549ee3fa6676a8d by CJ Johnson <johnsoncj@google.com>:
      Pass allocator_type through allocator_traits before extracting the typedefs
      PiperOrigin-RevId: 277730393
      d843bc4bc30bf5b11af76db8beda8634b6111a62 by Abseil Team <absl-team@google.com>:
      Convert the Waiter::Init() method to the default constructor and define
      a destructor for the Waiter class.
      Use placement new and delete with Waiter objects.
      PiperOrigin-RevId: 277728823
      1ba6edf421dd2dfe13c55970a03c99592cb6677d by Derek Mauro <dmauro@google.com>:
      Use lowercase spelling for include of dbghelp.h
      When cross-compiling under MinGW this is important
      PiperOrigin-RevId: 277629783
      cfc662a6fa357a84ddda8037156c7f26cee40c36 by Abseil Team <absl-team@google.com>:
      Don't use atomic ops on waiter and wakeup counts in WIN32 waiter mode.
      Port the new CONDVAR waiter mode code in CL 277366017 to the WIN32
      waiter mode.
      PiperOrigin-RevId: 277603611
      833106542e61fa0832900adf3c1b2afc6890b94b by Abseil Team <absl-team@google.com>:
      Add the PerThreadSem::Destroy() method.
      PerThreadSem::Destroy() is used to destroy the pthread mutex and
      condition variable or the POSIX semaphore.
      PiperOrigin-RevId: 277586675
      7814da4a59106cf1e0e4db1a31b9592ebbd2094b by Samuel Benzaquen <sbenza@google.com>:
      Enable the assertion in the iterator's operator* and operator->
      PiperOrigin-RevId: 277563401
      GitOrigin-RevId: 90ecacd2a3db96ee64ef23af37a80fad404e2b32
      Change-Id: Ib19be3680da74f0b94055c9039115ec6bcaea7b0
  8. 30 Oct, 2019 3 commits
    • vslashg's avatar
      Merge branch 'master' of https://github.com/abseil/abseil-cpp · 83880e3d
      vslashg authored
      Integrating PR 397.
    • Abseil Team's avatar
      Export of internal Abseil changes · 8207907f
      Abseil Team authored
      2f49cb9009386bc67bf54a2908c8720b749c8b7f by Greg Falcon <gfalcon@google.com>:
      docs: fix typo
      Import of https://github.com/abseil/abseil-cpp/pull/397
      PiperOrigin-RevId: 277504420
      f2bed362c1c12d3fa9c22d11f2b918668e8c37b7 by Abseil Team <absl-team@google.com>:
      Avoid our is_[copy/move]_assignable workarounds in MSVC 19.20 and on, since that release introduces a regression that breaks our workaround. We should ideally use the std forms in more cases, but branching when our workarounds fail is simpler to maintain.
      PiperOrigin-RevId: 277502334
      e33de894ffd49848b9e088f59acc9743d1661948 by Derek Mauro <dmauro@google.com>:
      Update rules_cc version. The mirror.bazel.build URL does not exist
      (cache expiration?)
      PiperOrigin-RevId: 277498394
      b23757b0747c64634d2d701433782c969effef19 by Abseil Team <absl-team@google.com>:
      Fix https://github.com/abseil/abseil-cpp/issues/394.
      PiperOrigin-RevId: 277491405
      54c75b8b29813531c52d67cf0ba7063baae4a4f3 by Abseil Team <absl-team@google.com>:
      Fix comment typos: waker => waiter.
      PiperOrigin-RevId: 277376952
      874eeaa3b3af808fc88b6355245f643674f5e36e by Abseil Team <absl-team@google.com>:
      Don't use atomic ops on waiter and wakeup counts in CONDVAR waiter mode.
      Just guard the waiter and wakeup counts with the mutex. This eliminates the
      Also fix a typo in the error message for pthread_cond_timedwait.
      PiperOrigin-RevId: 277366017
      ce8c9a63109214519b5a7eaecef2c663c4d566df by Greg Falcon <gfalcon@google.com>:
      Implement the config options for our four main C++ forward compatibility types.
      These options control whether the names `any`, `optional`, `string_view`, and `variant` in namespace `absl` are aliases to the corresponding C++17 types in namespace `std`.  By default, we continue to auto-detect the configuration of the compiler being run.
      These options are not intended to be modified on the command line (as -D flags, say).  Instead, the options.h file can be modified by distributors of Abseil (e.g., binary packagers, maintainers of local copies of Abseil, etc.)
      Changing options will change Abseil in an ODR sense.  Any program must only link in a single version of Abseil.  Linking libraries that use Abseil configured with different options is an error: there is no ABI compatibility guarantee when linking different configurations, even if the Abseil versions used are otherwise exactly identical.
      PiperOrigin-RevId: 277364298
      5ed3ad42ae43a05862070f92f9ffd07f5c1f2b81 by Chris Kennelly <ckennelly@google.com>:
      Suppress -Wimplicit-int-float-conversion.
      On recent builds of Clang, this is an error/warning.
      PiperOrigin-RevId: 277346168
      9b9b0055243c705189bb27d912e6d45a7789cdee by Eric Fiselier <ericwf@google.com>:
      Allow building Abseil as a shared library with CMake.
      By default CMake's `add_library` creates the target as a static
      library. However, users can override the default using the builtin
      CMake option -DBUILD_SHARED_LIBS=ON.
      This changes Abseil's CMake to respect this configuration option
      by removing the explicit `STATIC` in our usages of `add_library`.
      PiperOrigin-RevId: 277337753
      63a8b7b8ede3a9d851916929d6b8537f4f2508ca by Abseil Team <absl-team@google.com>:
      Improve AlphaNum Hex performance by using absl::numbers_internal::FastHexToBufferZeroPad16.
      PiperOrigin-RevId: 277318108
      dd047f7e92032682d94b27732df0e4d0670e24a4 by CJ Johnson <johnsoncj@google.com>:
      Internal change
      PiperOrigin-RevId: 277316913
      d19ee7074929fed08973cc5b40a844573ce1e0a6 by Abseil Team <absl-team@google.com>:
      Handle invoking [[nodiscard]] functions correctly in our tests.
      PiperOrigin-RevId: 277301500
      5373f3737894ba9b8481e95e5f58c7957c00d26a by Chris Kennelly <ckennelly@google.com>:
      For internal reasons, loosen visibility restrictions of `//absl/base:malloc_internal`.
      As an internal-namespace interface, this module remains unsupported.  We
      reserve the right to change, delete, or re-restrict visibility to this target
      at any time.
      PiperOrigin-RevId: 277118689
      44e4f6655e05393a375d09b3625c192b1fde5909 by Abseil Team <absl-team@google.com>:
      Fix error in example civil day comment.
      PiperOrigin-RevId: 277103315
      7657392b4ce48469106f11cdb952a0bc76a28df3 by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 277056076
      c75bda76f40b01fa249b75b5a70c1f5907e56c76 by Abseil Team <absl-team@google.com>:
      Suppress lifetime constant-initialization tests when building with MSVC versions > 19.0.
      These are broken due to non-compliant initialization order in these versions:
      We don't know when Microsoft will fix this bug.
      PiperOrigin-RevId: 277049770
      16c3b9bf2a1796efa57f97b00bcd6227fbccca1f by Matt Calabrese <calabrese@google.com>:
      Avoid our is_[copy/move]_assignable workarounds in MSVC 19.20 and on, since that release introduces a regression that breaks our workaround. We should ideally use the std forms in more cases, but branching when our workarounds fail is simpler to maintain.
      PiperOrigin-RevId: 277048670
      e91003fa3ee6026d9b80624a23fc144fa5d74810 by Chris Kennelly <ckennelly@google.com>:
      Fix -Wimplicit-int-float-conversion warning in latest clang
      PiperOrigin-RevId: 276771618
      53087ca6603e86ad815f3dd9ab795cc0f79792c1 by Andy Soffer <asoffer@google.com>:
      Add documentation on absl::SNPrintF.
      PiperOrigin-RevId: 276694032
      a9426af8cbd4c3a8f9053e7446c821852e41ff61 by Jorg Brown <jorg@google.com>:
      Stop including kern/OSByteOrder.h in order to support __APPLE__
      Apple compiles with clang now anyway, and clang has support for the
      built-in compiler swap functions that are much faster than any function call to
      the OS.
      PiperOrigin-RevId: 276625231
      df974be5aa5b4dc1b09c356cb8816edfc7867e63 by Jorg Brown <jorg@google.com>:
      Fix the build for Android x86-64 builds, where __SSE4_2__ is defined but
      _bswap64 is not.
      PiperOrigin-RevId: 276542642
      d99dc092b3a5ad17643005e55f3b3cb6b9187ccc by Jorg Brown <jorg@google.com>:
      Remove a byteswap from the non-SSE path of FastHexToBufferZeroPad16
      Remove the need for including absl/base/internal/endian.h from the SSE case
      (since if we have the Intel SSE intrinsics, then clearly we also have the
      Intel Byte-Swap intrinsics.)
      PiperOrigin-RevId: 276532608
      d67b106dc930d8558810ae3983613bb2ab1e0d36 by Abseil Team <absl-team@google.com>:
      Use explicit static_cast<double> for int64_t to double conversion
      This uses an explicit static_cast<double>() in the int64_t to double comparisons in duration.cc's SafeAddRepHi. This satisfies clang's -Wimplicit-int-to-float-conversion warning (with https://reviews.llvm.org/D64666). This may also make it easier for humans to realize that the comparison is happening between two floating point double precision values.  It should have no impact on the behavior or generated code.
      No behavior change
      PiperOrigin-RevId: 276529211
      GitOrigin-RevId: 2f49cb9009386bc67bf54a2908c8720b749c8b7f
      Change-Id: I71e0781893ce219960b8290d54b20532779cb0ff
    • Nao YONASHIRO's avatar
      docs: fix typo (#397) · 39d68a42
      Nao YONASHIRO authored
  9. 24 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 078b89b3
      Abseil Team authored
      e54b9c7bbb0c58475676c268e2e19c69f4bce48a by Jorg Brown <jorg@google.com>:
      Tweak ABSL_PREDICT_TRUE slightly, for better code on some platforms and/or
      optimization levels.  "false || (x)" is more verbose than "!!(x)", but
      ultimately more efficient.
      For example, given this code:
      void InitIfNecessary() {
        if (ABSL_PREDICT_TRUE(NeedsInit())) {
      Clang with default optimization level will produce:
      Before this CL              After this CL
      InitIfNecessary:            InitIfNecessary:
        push rbp                    push rbp
        mov  rbp, rsp               mov  rbp, rsp
        call NeedsInit              call NeedsInit
        xor  al, -1
        xor  al, -1
        test al, 1                  test al, 1
        jne  .LBB2_1                jne  .LBB3_1
        jmp  .LBB2_2                jmp  .LBB3_2
      .LBB2_1:                    .LBB3_1:
        call SlowInitIfNecessary    call SlowInitIfNecessary
      .LBB2_2:                    .LBB3_2:
        pop  rbp                    pop  rbp
        ret                         ret
      PiperOrigin-RevId: 276401386
      0a3c4dfd8342bf2b1b11a87f1c662c883f73cab7 by Abseil Team <absl-team@google.com>:
      Fix comment nit: sem_open => sem_init.
      The code calls sem_init, not sem_open, to initialize an unnamed semaphore.
      (sem_open creates or opens a named semaphore.)
      PiperOrigin-RevId: 276344072
      b36a664e9459057509a90e83d3482e1d3a4c44c7 by Abseil Team <absl-team@google.com>:
      Fix typo in flat_hash_map.h: exchaged -> exchanged
      PiperOrigin-RevId: 276295792
      7bbd8d18276eb110c8335743e35fceb662ddf3d6 by Samuel Benzaquen <sbenza@google.com>:
      Add assertions to verify use of iterators.
      PiperOrigin-RevId: 276283300
      677398a8ffcb1f59182cffe57a4fe7ff147a0404 by Laramie Leavitt <lar@google.com>:
      Migrate distribution_impl.h/cc to generate_real.h/cc.
      Combine the methods RandU64To<Float,Double> into a single method:
      Remove rejection sampling from absl::uniform_real_distribution.
      PiperOrigin-RevId: 276158675
      c60c9d11d24b0c546329d998e78e15a84b3153f5 by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 276126962
      4c840cab6a8d86efa29b397cafaf7520eece68cc by Andy Soffer <asoffer@google.com>:
      Update CMakeLists.txt to address https://github.com/abseil/abseil-cpp/issues/365.
      This does not cover every platform, but it does at least address the
      first-order issue of assuming gcc implies x86.
      PiperOrigin-RevId: 276116253
      98da366e6b5d51afe5d7ac6722126aca23d85ee6 by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 276097452
      GitOrigin-RevId: e54b9c7bbb0c58475676c268e2e19c69f4bce48a
      Change-Id: I02d84454bb71ab21ad3d39650acf6cc6e36f58d7
  10. 22 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 19b021cb
      Abseil Team authored
      3f913305d6582ac0c66c25f71275d89232dc97bf by CJ Johnson <johnsoncj@google.com>:
      Internal change
      PiperOrigin-RevId: 276081163
      19c65f15e8b67e4677ebed9f815f934091368f41 by CJ Johnson <johnsoncj@google.com>:
      Internal change
      PiperOrigin-RevId: 275964906
      a40557fe4575a6bc9bed4fd83ed8c748bc3f15ff by Derek Mauro <dmauro@google.com>:
      Always enable symbolization on Windows.
      This doesn't require debug builds, only PDB files.
      PiperOrigin-RevId: 275961084
      953bec0e67d2495e901b940b67b6330291871998 by CJ Johnson <johnsoncj@google.com>:
      Test FixedArray exception safety for OOM using ThrowingAllocator
      PiperOrigin-RevId: 275921366
      13211ea447af1daf1701ccb1c7c6b2cbaa68eb93 by CJ Johnson <johnsoncj@google.com>:
      Internal change
      PiperOrigin-RevId: 275913105
      09dccef0c829cfab5847137ead6866c511e9ce51 by CJ Johnson <johnsoncj@google.com>:
      Internal change
      PiperOrigin-RevId: 275912911
      65db8fc06f50e0989aee2d264f8f7a348ff95c17 by Samuel Benzaquen <sbenza@google.com>:
      Move FormatPack to bind.cc.
      We do not get any benefit from inlining this function, but it creates
      unnecessary bloat at the call site.
      Moving it to the .cc file moves the initialization of the string out of the
      caller code.
      PiperOrigin-RevId: 275889073
      GitOrigin-RevId: 3f913305d6582ac0c66c25f71275d89232dc97bf
      Change-Id: Ia471eebba7322a6ea4edc954e50b30a060a45e39
  11. 21 Oct, 2019 2 commits
    • Loo Rong Jie's avatar
    • Abseil Team's avatar
      Export of internal Abseil changes · 2796d500
      Abseil Team authored
      b770d03c2f1042d399c3f9576e881691cbe962c4 by Abseil Team <absl-team@google.com>:
      Avoid applying the workaround for MSVC's static initialization problems when using clang-cl.
      PiperOrigin-RevId: 275870089
      2b8fc02ec49aeb5ad56cef20259cdd7f6ee0c917 by Abseil Team <absl-team@google.com>:
      Document return values.
      PiperOrigin-RevId: 275839042
      baa99064f9a28b188661df7fba989fcd558818af by Abseil Team <absl-team@google.com>:
      Support "auto" and other uncommon builtin types in absl::debugging_internal::Demangle.
      PiperOrigin-RevId: 275556195
      f9d5c6a3a0d374dbf105d6e2e9e0c8fa949ed187 by Gennadiy Rozental <rogeeff@google.com>:
      Internal rework.
      PiperOrigin-RevId: 275550005
      2679a77db5b26349e8c8b2059621af55d2fca139 by Mark Barolak <mbar@google.com>:
      Remove a comment reference to the no longer extant ::string implementation.
      PiperOrigin-RevId: 275531987
      7b427a7613c44a98c6f13da43b2bff2837ca6b19 by Derek Mauro <dmauro@google.com>:
      Upgrade to Bazel 1.0.0 and CMake 3.15.4
      PiperOrigin-RevId: 275500823
      81f7d20905debf9d1e300bd2e9899f88d27f632a by Derek Mauro <dmauro@google.com>:
      Fix -Wimplicit-int-float-conversion warning in latest clang
      PiperOrigin-RevId: 275492439
      GitOrigin-RevId: b770d03c2f1042d399c3f9576e881691cbe962c4
      Change-Id: I9b39dad524489f0d62c912d02e8ac43761c81e55
  12. 18 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · e4c8d0eb
      Abseil Team authored
      a9ac6567c0933d786d68c10011e3f3ff9deedf89 by Greg Falcon <gfalcon@google.com>:
      Add absl::FunctionRef, a type analogous to the proposed C++23 std::function_ref.
      Like std::function, FunctionRef can be used to type-erase any callable (invokable) object.  However, FunctionRef works by reference: it does not store a copy of the type-erased object.  If the wrapped object is destroyed before the FunctionRef, the reference becomes dangling.
      FunctionRef relates to std::function in much the same way that string_view relates to std::string.
      Because of these limitations, FunctionRef is best used only as a function argument type, and only where the function will be invoked immediately (rather than saved for later use).  When `const std::function<...>&` is used in this way, `absl::FunctionRef<...>` is a better-performing replacement.
      PiperOrigin-RevId: 275484044
      1f7c4df3760f8b93e5a5baf40b070eca1d3f4c98 by Abseil Team <absl-team@google.com>:
      Add FastHexToBufferZeroPad16() function for blazingly fast hex encoding of uint64_t.
      PiperOrigin-RevId: 275420901
      08d48ac004eba57cf2f1ada827181a2995f74807 by Abseil Team <absl-team@google.com>:
      Avoid applying the workaround for MSVC's static initialization problems when using clang-cl.
      PiperOrigin-RevId: 275366326
      40be82bd2b34670b5458c0a72a0475086153c2d6 by Abseil Team <absl-team@google.com>:
      Added comments to SimpleAtof()/SimpleAtod() that clarify that they
      always use the "C" locale, unlike the standard functions strtod()
      and strtof() referenced now in the comments.
      PiperOrigin-RevId: 275355815
      086779dacb3f6f2b3ab59947e94e79046bdb1fe1 by Jorg Brown <jorg@google.com>:
      Move the hex conversion table used by escaping.cc into numbers.h so
      that other parts of Abseil can more efficiently access it.
      PiperOrigin-RevId: 275331251
      3c4ed1b04e55d96a40cbe70fb70929ffbb0c0432 by Abseil Team <absl-team@google.com>:
      Avoid applying the workaround for MSVC's static initialization problems when using clang-cl.
      PiperOrigin-RevId: 275323858
      56ceb58ab688c3761978308609b09a1ac2739c9a by Derek Mauro <dmauro@google.com>:
      Add script for testing on Alpine Linux (for musl test coverage)
      PiperOrigin-RevId: 275321244
      GitOrigin-RevId: a9ac6567c0933d786d68c10011e3f3ff9deedf89
      Change-Id: I39799fa03768ddb44f3166200c860e1da4461807
  13. 17 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · a15364ce
      Abseil Team authored
      d35c72d705155dcd89a92835103540f14c643d10 by Gennadiy Rozental <rogeeff@google.com>:
      helpxml changed to report types of flags with built-in value type.
      PiperOrigin-RevId: 275131440
      f3478792943d7dd40a6ef6083a8e5d374f43a65e by Abseil Team <absl-team@google.com>:
      Add space padding tests for hex conversions.
      PiperOrigin-RevId: 275120155
      7c2e4725403e173660f33f94af686a75d3722936 by Andy Soffer <asoffer@google.com>:
      Fix https://github.com/abseil/abseil-cpp/issues/379
      by renaming `roundup` to `round_up`
      PiperOrigin-RevId: 275106110
      84cb30d6ee509961ac4359cfdda1360973b9527d by Laramie Leavitt <lar@google.com>:
      Move random_internal::wide_multiply into a file by the same name.
      PiperOrigin-RevId: 275059359
      06d691a8c187b5d899e7863784b23bdcfd580cb2 by Abseil Team <absl-team@google.com>:
      Add missing "return" keyword.
      PiperOrigin-RevId: 275036408
      GitOrigin-RevId: d35c72d705155dcd89a92835103540f14c643d10
      Change-Id: Id837b4de6c9cfe18f0a088363754bfe389df985b
  14. 16 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · ab3552a1
      Abseil Team authored
      f13697e3d33803f9667d124072da4f6dd8bfbf85 by Andy Soffer <asoffer@google.com>:
      Addressing https://github.com/abseil/abseil-cpp/issues/314, fixing
      CMakeLists.txt to reference ABSL_TEST_COPTS rather than ABSL_DEFAULT_COPTS.
      ABSL_TEST_COPTS should be preferred for all tests so that they are configured consistently (moreover, CMake should agree with Bazel).
      PiperOrigin-RevId: 274932312
      c31c24a1fa6bb98136adf51ef37c0818ac366690 by Derek Mauro <dmauro@google.com>:
      Silence MSAN in the stack consumption test utility
      PiperOrigin-RevId: 274912950
      2412913c05a246cd527cd4c31452f126e9129f3a by CJ Johnson <johnsoncj@google.com>:
      Internal change
      PiperOrigin-RevId: 274847103
      75e984a93b5760873501b96ac3229ccfd955daf8 by Abseil Team <absl-team@google.com>:
      Reformat BUILD file to current standards.
      PiperOrigin-RevId: 274815392
      a2780e085f1df1e4ca2c814a58c893d1b78a1d9c by Samuel Benzaquen <sbenza@google.com>:
      Fix invalid result regarding leading zeros in the exponent.
      PiperOrigin-RevId: 274808017
      dd402e1cb5c4ebacb576372ae24bf289d729d323 by Samuel Benzaquen <sbenza@google.com>:
      Make string_view's relational operators constexpr when possible.
      PiperOrigin-RevId: 274807873
      b4ef32565653a5da1cb8bb8d0351586d23519658 by Abseil Team <absl-team@google.com>:
      Internal rework.
      PiperOrigin-RevId: 274787159
      70d81971c5914e6785b8e8a9d4f6eb2655dd62c0 by Gennadiy Rozental <rogeeff@google.com>:
      Internal rework.
      PiperOrigin-RevId: 274715557
      14f5b0440e353b899cafaaa15b53e77f98f401af by Gennadiy Rozental <rogeeff@google.com>:
      Make deprecated statements about ParseFLag/UnparseFlag consistent in a file.
      PiperOrigin-RevId: 274668123
      2e85adbdbb92612e4d750bc34fbca3333128b42d by Abseil Team <absl-team@google.com>:
      Allow absl::c_equal to be used with arrays.
      This is achieved by allowing container size computation for arrays.
      PiperOrigin-RevId: 274426830
      219719f107226d328773e6cec99fb473f5d3119c by Gennadiy Rozental <rogeeff@google.com>:
      Release correct extension interfaces to support usage of absl::Time and absl::Duration as ABSL_FLAG
      PiperOrigin-RevId: 274273788
      47a77f93fda23b69b4a6bdbd506fe643c69a5579 by Gennadiy Rozental <rogeeff@google.com>:
      Rework of flags persistence/FlagSaver internals.
      PiperOrigin-RevId: 274225213
      7807be3fe757c19e3b0c487298387683d4c9f5b3 by Abseil Team <absl-team@google.com>:
      Switch reference to sdkddkver.h to lowercase, matching conventions used in the Windows SDK and other uses. This helps to avoid confusion on case-sensitive filesystems.
      PiperOrigin-RevId: 274061877
      561304090087a19f1d10f0475f564fe132ebf06e by Andy Getzendanner <durandal@google.com>:
      Fix ABSL_WAITER_MODE detection for mingw
      Import of https://github.com/abseil/abseil-cpp/pull/342
      PiperOrigin-RevId: 274030071
      9b3caac2cf202b9d440dfa1b4ffd538ac4bf715b by Derek Mauro <dmauro@google.com>:
      Support using Abseil with the musl libc implementation.
      Only test changes were required:
        * Workaround for a bug in sigaltstack() on musl
        * printf-style pointer formatting (%p) is implementation defined,
          so verify StrFromat produces something compatible
        * Fix detection of feenableexcept()
      PiperOrigin-RevId: 274011666
      73e8a938fc139e1cc8670d4513a445bacc855539 by Abseil Team <absl-team@google.com>:
      nvcc workaround: explicitly specify the definition of node_handle::Base
      PiperOrigin-RevId: 274011392
      ab9cc6d042aca7d48e16c504ab10eab39433f4b2 by Andy Soffer <asoffer@google.com>:
      Internal change
      PiperOrigin-RevId: 273996318
      e567c4979ca99c7e71821ec1523b8f5edd2c76ac by Abseil Team <absl-team@google.com>:
      Introduce a type alias to work around an nvcc bug.
      On the previous code, nvcc gets confused thinking that T has to be a parameter
      pack, as IsDecomposable accepts one.
      PiperOrigin-RevId: 273980472
      105b6e6339b77a32f4432de05f44cd3f9c436751 by Eric Fiselier <ericwf@google.com>:
      Import of CCTZ from GitHub.
      PiperOrigin-RevId: 273955589
      8feb87ff1d7e721fe094855e67c19539d5e582b7 by Abseil Team <absl-team@google.com>:
      Avoid dual-exporting scheduling_mode.h
      PiperOrigin-RevId: 273825112
      fbc37854776d295dae98fb9d06a541f296daab95 by Andy Getzendanner <durandal@google.com>:
      Fix ABSL_HAVE_ALARM check on mingw
      Import of https://github.com/abseil/abseil-cpp/pull/341
      PiperOrigin-RevId: 273817839
      6aedcd63a735b9133e143b043744ba0a25407f6f by Andy Soffer <asoffer@google.com>:
      Remove bit_gen_view.h now that all callers have been migrated to bit_gen_ref.h
      TGP - https://test.corp.google.com/ui#id=OCL:273762409:BASE:273743370:1570639020744:3001bcb5
      PiperOrigin-RevId: 273810331
      6573de24a66ba715c579f7f32b5c48a1d743c7f8 by Abseil Team <absl-team@google.com>:
      Internal change.
      PiperOrigin-RevId: 273589963
      91c8c28b6dca26d98b39e8e06a8ed17c701ff793 by Abseil Team <absl-team@google.com>:
      Update macro name for `ABSL_GUARDED_BY()` in the example section.
      PiperOrigin-RevId: 273286983
      0ff7d1a93d70f8ecd693f8dbb98b7a4a016ca2a4 by Abseil Team <absl-team@google.com>:
      Fix potential integer overflow in the absl time library.
      In absl::FromTM, the tm.tm_year is added by 1900 regarding that tm.tm_year represents the years since 1900. This change checks integer overflow before doing the arithmetic operation.
      PiperOrigin-RevId: 273092952
      b41c2a1310086807be09a833099ae6d4009f037c by Gennadiy Rozental <rogeeff@google.com>:
      Correctly Unlock the global mutex in case of concurrent flag initialization.
      Fixes #386
      PiperOrigin-RevId: 272979749
      c53103e71b2a6063af3c6d4ff68aa2d8f9ae9e06 by Abseil Team <absl-team@google.com>:
      Try to become idle only when there is no wakeup.
      Immediately after waking up (when futex wait returns), the current thread tries
      to become idle doing bunch of memory loads and a branch.  Problem is that there
      is a good chance that we woke up due to a wakeup, especially for actively used
      threads.  For such wakeups, calling MaybeBecomeIdle() would be a waste of
      Instead, call MaybeBecomeIdle() only when we are sure there is no wakeup.  For
      idle threads the net effect should be the same.  For active, threads this will
      be more efficient.
      Moreover, since MaybeBecomeIdle() is called before waiting on the futex, the
      current thread will try to become idle before sleeping.  This should result
      in more accurate idleness and more efficient release of thread resources.
      PiperOrigin-RevId: 272940381
      GitOrigin-RevId: f13697e3d33803f9667d124072da4f6dd8bfbf85
      Change-Id: I36de05aec12595183725652dd362dfa58fb095d0
  15. 10 Oct, 2019 1 commit
  16. 09 Oct, 2019 1 commit
  17. 03 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 25597bdf
      Abseil Team authored
      3e60f355db5afd7a864591d81a6c383b6c0a0780 by Samuel Benzaquen <sbenza@google.com>:
      Internal change
      PiperOrigin-RevId: 272531442
      6d189240b8cebe3a390c730de491156d03049229 by Andy Getzendanner <durandal@google.com>:
      Fix AtomicHook init-order fiasco under MSVC 2019.
      On this platform, constexpr static init sometimes happens after dynamic init =/.  When it does, we should not zero hook_ (overwriting the value written there by dynamic init); instead we should leave it alone.  This works even when constexpr static init goes first since all uses of AtomicHook should have static storage duration and be zero-initialized.
      PiperOrigin-RevId: 272525226
      d01b14fc06bc75b41c51976ed32e7c304ea1aab7 by Abseil Team <absl-team@google.com>:
      exclude emscripten from running tests involving long doubles
      PiperOrigin-RevId: 272497628
      GitOrigin-RevId: 3e60f355db5afd7a864591d81a6c383b6c0a0780
      Change-Id: I3c8a8f5acaf7652a06ef40cf028ef5d2e142f81b
  18. 02 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · aad33fef
      Abseil Team authored
      fb57c2d3598c81779c1bcd43c61b5abe748159c1 by Mark Barolak <mbar@google.com>:
      Fix a typo in string_view.h
      PiperOrigin-RevId: 272287080
      69ac5819b786e50ec4c3e80847b868feb4ed94ca by Abseil Team <absl-team@google.com>:
      Fix -Wmicrosoft-template on clang-cl.
      PiperOrigin-RevId: 272260629
      GitOrigin-RevId: fb57c2d3598c81779c1bcd43c61b5abe748159c1
      Change-Id: Ib5b4486f6a991b340e640b0353fc89cae1100b14
  19. 01 Oct, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 8fe7214f
      Abseil Team authored
      406622c43f296eeedf00e0e9246acfb4ea6ecd5e by Abseil Team <absl-team@google.com>:
      Avoid the compiler reloading __is_long() on string_view(const string&)
      The underlying cause is that the compiler assume a scenario where string_view is created with placement new into memory occupied by the input, so the store to 'ptr' can affect the value / result of size(); i.e., __is_long() reloads the __size value).
      Example code: string_view1 demonstrates the problem, string_view2 DTRT.
      === string_view1
      struct string_view1 {
          string_view1(const char* ptr, size_t n) : ptr(ptr), n(n) {}
          string_view1(const std::string& s) : ptr(s.data()), n(s.length()) {}
          const char* ptr;
          size_t n;
      struct S1 {
          S1(const std::string& s);
          string_view1 sv;
      S1::S1(const std::string& s) : sv(s) {}
              test    byte ptr [rsi], 1
              je      .LBB0_1
              mov     rax, qword ptr [rsi + 16]
              mov     qword ptr [rdi], rax
              movzx   eax, byte ptr [rsi]
              test    al, 1
              jne     .LBB0_5
              shr     rax
              mov     qword ptr [rdi + 8], rax
              lea     rax, [rsi + 1]
              mov     qword ptr [rdi], rax
              movzx   eax, byte ptr [rsi]
              test    al, 1
              je      .LBB0_4
              mov     rax, qword ptr [rsi + 8]
              mov     qword ptr [rdi + 8], rax
      === string_view2
      struct string_view2 {
          string_view2(const char* ptr, size_t n) : ptr(ptr), n(n) {}
          string_view2(const std::string& s) : string_view2(s.data(), s.size()) {}
          const char* ptr;
          size_t n;
      struct S2 {
          S2(const std::string& s);
          string_view2 sv;
      S2::S2(const std::string& s) : sv(s) {}
              movzx   eax, byte ptr [rsi]
              test    al, 1
              je      .LBB1_1
              mov     rax, qword ptr [rsi + 8]
              mov     rsi, qword ptr [rsi + 16]
              mov     qword ptr [rdi], rsi
              mov     qword ptr [rdi + 8], rax
              add     rsi, 1
              shr     rax
              mov     qword ptr [rdi], rsi
              mov     qword ptr [rdi + 8], rax
      PiperOrigin-RevId: 272096771
      GitOrigin-RevId: 406622c43f296eeedf00e0e9246acfb4ea6ecd5e
      Change-Id: I70173a2db68cd9b597fff1c09e00198c632cfe95
  20. 30 Sep, 2019 2 commits
    • Abseil Team's avatar
      Export of internal Abseil changes · debac94c
      Abseil Team authored
      3f99b3ea921adc3607b6f308646db9f893c4d55d by CJ Johnson <johnsoncj@google.com>:
      Import of CCTZ from GitHub.
      PiperOrigin-RevId: 272051845
      9a62831d763e39936239ff53460ede42c2a73afb by CJ Johnson <johnsoncj@google.com>:
      Fix spelling errors #384
      PiperOrigin-RevId: 272015607
      b9b51815d52cf17e987636d83adea28c262f3f1a by Abseil Team <absl-team@google.com>:
      Fix a spelling error
      aligment -> alignment
      PiperOrigin-RevId: 271629812
      7965acbe7d7b5de18cfb2f2e5c0c18759313a229 by Abseil Team <absl-team@google.com>:
      Internal build system change.
      PiperOrigin-RevId: 271476858
      0b4508cbeff246c76762f80cbf8753a7414e4023 by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 271450732
      f8cb1aa2196cf2a5e7a474038519da8024090e7f by Samuel Benzaquen <sbenza@google.com>:
      Internal change
      PiperOrigin-RevId: 271418668
      GitOrigin-RevId: 3f99b3ea921adc3607b6f308646db9f893c4d55d
      Change-Id: I8743e60d001d42f24cd7494f106eeb2eb07e6526
    • Sungmann Cho's avatar
      Fix spelling errors (#384) · 882b3501
      Sungmann Cho authored
      aligment -> alignment
      constructable -> constructible
      constuctible -> constructible
      contructed -> constructed
      destructable -> destructible
      futher -> further
      implcit -> implicit
      implemenation -> implementation
      intrinics -> intrinsics
  21. 25 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 502efe6d
      Abseil Team authored
      8e04df6fcbd062e5eaf179a6ec9b0a26f8aa8a39 by Abseil Team <absl-team@google.com>:
      Use a floating point type for the example usage of absl::uniform_real_distribution.
      PiperOrigin-RevId: 271167776
      5f8f1dfea50bc16a9d9af3e50c4636500a938b29 by Abseil Team <absl-team@google.com>:
      the llvm wasm backend does not support this data symbol in text section, so remove it from the test.
      PiperOrigin-RevId: 271138100
      2874542cb212962ac3093fd78fd5e1eb85c126c0 by Xiaoyi Zhang <zhangxy@google.com>:
      Work around MSVC 2019 compiler bug related to constexpr in optional_test.
      The change in optional_test is necessary to avoid another bug on MSVC
      complaining about accessing invalid member of union, and also makes the test
      more reasonale by checking the value of a non-static member.
      Filed a bug against MSVC
      PiperOrigin-RevId: 271129805
      3a5d56f0c3362aabf68938fb95c4e2d3eca59538 by Abseil Team <absl-team@google.com>:
      Improve precision of absl::GetCurrentTimeNanos() by adjusting
      cycle time sooner.
      PiperOrigin-RevId: 271007945
      1e044a6dec7c0ca150fff1aee52dbdb16aa43ed7 by Abseil Team <absl-team@google.com>:
      Internal change.
      PiperOrigin-RevId: 270962690
      GitOrigin-RevId: 8e04df6fcbd062e5eaf179a6ec9b0a26f8aa8a39
      Change-Id: Icb05423a7e93ebdae16baadd59a60b75b5cfa249
  22. 20 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · ccdd1d57
      Abseil Team authored
      509c39cb5aa70893a180e5625e06cd9f76061ecf by Shaindel Schwartz <shaindel@google.com>:
      Release CivilTime parsing API.
      PiperOrigin-RevId: 270262448
      GitOrigin-RevId: 509c39cb5aa70893a180e5625e06cd9f76061ecf
      Change-Id: I343eb3062cdf6a2c53e6fddcaa35eb25d7478b1a
  23. 19 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · ddf8e52a
      Abseil Team authored
      cf6037b985b629c253b8a87e4408c88a61baf89a by Abseil Team <absl-team@google.com>:
      Adds an example of using ABSL_DEPRECATED on a template.
      Without this, it's unclear where to add this annotation (e.g. before template <> or after it).
      PiperOrigin-RevId: 270057224
      c53bc14dd683cc1e41c940a337001b42a0270eaf by Andy Getzendanner <durandal@google.com>:
      Parser and unparser for command-line flags of type absl::LogSeverity.
      PiperOrigin-RevId: 269939999
      d91174b02f3b213f0b26701d9d97c79f809e6fea by Abseil Team <absl-team@google.com>:
      Fix a typo.
      PiperOrigin-RevId: 269738777
      GitOrigin-RevId: cf6037b985b629c253b8a87e4408c88a61baf89a
      Change-Id: I6cec3101014e4c77f4ff2edb4c91740982dbb459
  24. 17 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 6ec13628
      Abseil Team authored
      d3f2943ec6d9be5db3e60ef1d1ddb4c118b6ef54 by Shaindel Schwartz <shaindel@google.com>:
      Import of CCTZ from GitHub.
      PiperOrigin-RevId: 269631104
      c0b2662685f17f1eb721debd36166af9e9cb092b by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 269355540
      bdb517a226eddd25c411acd1b8acfdd399c1df1b by Shaindel Schwartz <shaindel@google.com>:
      Internal change
      PiperOrigin-RevId: 268693722
      d46654c975125dd5def2e6cff60c2a4a1003430f by Abseil Team <absl-team@google.com>:
      Internal change
      PiperOrigin-RevId: 268693087
      GitOrigin-RevId: d3f2943ec6d9be5db3e60ef1d1ddb4c118b6ef54
      Change-Id: I06f134e902e8a4addebef6073cc92697aecf89ca
  25. 12 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · ac78ffc3
      Abseil Team authored
      932b2203beb5cf08a2b77190ff43fa029c968ad6 by Andy Soffer <asoffer@google.com>:
      Updating CMake documentation.
      PiperOrigin-RevId: 268509936
      fd9c53b9edda77e7b01189c2e3babc993e404f3f by Abseil Team <absl-team@google.com>:
      Rename flags "internal" build target to "flag_internal".
      PiperOrigin-RevId: 268485876
      GitOrigin-RevId: 932b2203beb5cf08a2b77190ff43fa029c968ad6
      Change-Id: Ic9efdc920925fa3c97e8cd4281b86f710f996c14
  26. 11 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 5374c56e
      Abseil Team authored
      62de74cdadc450a28eaa61a2db0912c97c8004dd by Abseil Team <absl-team@google.com>:
      Move "internal/flag.*" files to the "internal" build target.
      PiperOrigin-RevId: 268301646
      72cd87aebd52fa7e7ee7cff0284f3761dd490945 by CJ Johnson <johnsoncj@google.com>:
      Silences incorrect test failure for InlinedVector in MSVC debug mode.
      PiperOrigin-RevId: 268234003
      GitOrigin-RevId: 62de74cdadc450a28eaa61a2db0912c97c8004dd
      Change-Id: I6b58e41561de6ac2e34cf5c1eedbf535dc468955
  27. 09 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 97c1664b
      Abseil Team authored
      167cd2647144583746311129b0cc98a89a9897e1 by Andy Soffer <asoffer@google.com>:
      Internal Changes
      PiperOrigin-RevId: 268000987
      ab44fea7dfdaf763c69609a08ddfac22480ce520 by Derek Mauro <dmauro@google.com>:
      Fix flags Cmake tests on Windows
      PiperOrigin-RevId: 267859442
      d7ec9f7611370b01bc9a5aed7e18460df2a15429 by Abseil Team <absl-team@google.com>:
      Fix undefined behavior in symbolize_elf.inc
      PiperOrigin-RevId: 267684904
      e7c5f8e472a91ed99bdf4876942f2bda5751aa6c by Abseil Team <absl-team@google.com>:
      Turn off ABSL_HAS_ALARM on Fuchsia.
      PiperOrigin-RevId: 267666090
      b7d25d5c71a49e697a8bf6440ed30f2e3f036420 by Chris Kennelly <ckennelly@google.com>:
      Mark once initialization function as no inline.
      We expect this code to run infrequently.
      PiperOrigin-RevId: 267649713
      dc2a5e5f1e39a03fff837d34a319033fde55d9ba by Derek Mauro <dmauro@google.com>:
      Fix the MSVC CMake random build
      PiperOrigin-RevId: 267624074
      ba2751b67fa17d1b6c53e5ba79f81a5371e4a03a by Abseil Team <absl-team@google.com>:
      Move "internal/flag.*" files to the "internal" build target.
      PiperOrigin-RevId: 267588996
      05b985a33eec4f8acff1809ad9218a1e22220f34 by Abseil Team <absl-team@google.com>:
      Move "internal/flag.*" files to the "internal" build target.
      PiperOrigin-RevId: 267580412
      GitOrigin-RevId: 167cd2647144583746311129b0cc98a89a9897e1
      Change-Id: Ibd334f46a5671c7c1d3fcf5354029e2fbb7ba91f
  28. 06 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 325fd7b0
      Abseil Team authored
      2e894f3c2fadc789abf9011222526d5da1e0433e by Gennadiy Rozental <rogeeff@google.com>:
      Internal change
      PiperOrigin-RevId: 267557172
      535be36d401a556156223ecc1aabd73a271f0f05 by Abseil Team <absl-team@google.com>:
      Internal change.
      PiperOrigin-RevId: 267456795
      GitOrigin-RevId: 2e894f3c2fadc789abf9011222526d5da1e0433e
      Change-Id: I95d29cbde5cd8342ae71b77728baa61b7cf6d440
  29. 05 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 83c1d65c
      Abseil Team authored
      972333fe1e43427849b8a634aa35061e81be3642 by Abseil Team <absl-team@google.com>:
      Replace deprecated thread annotations macros.
      PiperOrigin-RevId: 267332619
      7039c6dc499a31c372b4872eda0772455931c360 by Gennadiy Rozental <rogeeff@google.com>:
      Internal change
      PiperOrigin-RevId: 267220271
      a3f524d2afc2535686f206a7ce06961016349d7a by Abseil Team <absl-team@google.com>:
      Factor kernel_timeout out of synchronization.
      PiperOrigin-RevId: 267217304
      90287de4114ef9a06cafe50256a2d03349772c21 by Abseil Team <absl-team@google.com>:
      Fixed comment typo.
      PiperOrigin-RevId: 267198532
      d312c1a1e52aeca1871ff0deead416d09a7f237e by Gennadiy Rozental <rogeeff@google.com>:
      Internal change
      PiperOrigin-RevId: 267185804
      GitOrigin-RevId: 972333fe1e43427849b8a634aa35061e81be3642
      Change-Id: Ia8a2f877c57cef9854aad48f1753af872fc04dc8
  30. 04 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · eb6b7bd2
      Abseil Team authored
      552959395a367b202e00fc7680e3500e4d15a341 by Abseil Team <absl-team@google.com>:
      In span_test, correctly describe matches with negation, and remove redundant "is".
      negation is true when the match is negative.
      PiperOrigin-RevId: 267064695
      GitOrigin-RevId: 552959395a367b202e00fc7680e3500e4d15a341
      Change-Id: Ic876f30170e7e0008c13fdc6269462cfc5737e0f
  31. 03 Sep, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 9ddac555
      Abseil Team authored
      35f516d528f4b53694ebe1f7debc023f1383cf4a by Shaindel Schwartz <shaindel@google.com>:
      Internal change
      PiperOrigin-RevId: 266967228
      40a0b91769133c48e3799a99f4dd2a7ce58bac91 by Derek Mauro <dmauro@google.com>:
      Prevent absl::StrCat() and absl::StrAppend() from dereferencing std::string::end()
      Fixes #374
      PiperOrigin-RevId: 266447391
      GitOrigin-RevId: 35f516d528f4b53694ebe1f7debc023f1383cf4a
      Change-Id: I82e3a1bec5fa528db90a2f67dd3bc000e8dca8ab
  32. 30 Aug, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 1948f6f9
      Abseil Team authored
      bc74316103bbda92541896f588f71c9d45bea768 by Gennadiy Civil <misterg@google.com>:
      Manually fixing the BUILD.bazel files
      d41bf9ea916a0dc8c69e6ba77f58f9d55649880e by Shaindel Schwartz <shaindel@google.com>:
      Minor cleanup to miscellaneous BUILD files.
      PiperOrigin-RevId: 266420157
      08a8dc2cbd48d27e1115809f9ca8d178551cd66e by Gennadiy Civil <misterg@google.com>:
      Internal Change
      Internal Change
      8617d58fde1ece40e4aa79eaa5e250b42d19835f by Shaindel Schwartz <shaindel@google.com>:
      Internal Change
      Internal Change
      3a0fc7d48bdc70c4f7dffc219578693dea84eb2d by Derek Mauro <dmauro@google.com>:
      Implement absl::string_view::at()
      PiperOrigin-RevId: 266024644
      ba53a9da8ede8fe7b8971eaab6b3a1fa34763ff6 by Andy Soffer <asoffer@google.com>:
      Remove forcing of optimization levels in MSVC.
      PiperOrigin-RevId: 265927588
      df86f2046b54bba7da2e345040806d43470de5c0 by Shaindel Schwartz <shaindel@google.com>:
      Internal change
      PiperOrigin-RevId: 265811077
      e2e3a6e8194363e7c6377672560c806d638a7c74 by Derek Mauro <dmauro@google.com>:
      Remove ABI unsafe mixed exceptions mode compilation.
      Testing will now be done on CI with the exceptions flag set globally.
      PiperOrigin-RevId: 265796079
      GitOrigin-RevId: bc74316103bbda92541896f588f71c9d45bea768
      Change-Id: Ibccd00f4829520454aa55c4f55c7cb2dc9c6b65a
  33. 27 Aug, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · a0d1e098
      Abseil Team authored
      f685906f54727cc2d356787af410ef72ddd38bd0 by Derek Mauro <dmauro@google.com>:
      On Windows, compile with /bigobj. Some template heavy code requires this.
      PiperOrigin-RevId: 265695531
      ed808812a4f5915d0516cecdc24ef4b90cf8333e by Derek Mauro <dmauro@google.com>:
      Fix the btree_test build on Windows+CMake
      PiperOrigin-RevId: 265689993
      c9a8ade28d7537d1dceec19c74edc4b10daf3c91 by Abseil Team <absl-team@google.com>:
      Remove unused using ::test::IsEmpty.
      PiperOrigin-RevId: 265567080
      GitOrigin-RevId: f685906f54727cc2d356787af410ef72ddd38bd0
      Change-Id: I12a3c9ef41c1b7c4c5f075a1ad4cedad54e953ac
  34. 23 Aug, 2019 2 commits
    • Abseil Team's avatar
      Export of internal Abseil changes · 2d2d7fbc
      Abseil Team authored
      d6748c733a70cd74ad9b76a0c9cd6b3fe2cecacf by Xiaoyi Zhang <zhangxy@google.com>:
      Remove empty block, to address alerts reported in
      PiperOrigin-RevId: 265099887
      232e2036b5668d6d1296b881f9347756d84541ee by Derek Mauro <dmauro@google.com>:
      Make the Linux Bazel CI scripts test with the exception mode explicitly set.
      PiperOrigin-RevId: 265092105
      942a40696c2c9b833be03e92d22a6ede7bccb6d4 by Xiaoyi Zhang <zhangxy@google.com>:
      Import https://github.com/abseil/abseil-cpp/pull/372.
      Suppress the unused variable warning on GCC, i.e. "-Wunused-variable".
      PiperOrigin-RevId: 265063925
      7ef90796b52cbdc260afc77cf47206f9356471d0 by Xiaoyi Zhang <zhangxy@google.com>:
      Add quotes to `ABSL_COMMON_INCLUDE_DIRS` since it's a list and may contain a
      `;`. This addresses https://github.com/abseil/abseil-cpp/issues/373.
      PiperOrigin-RevId: 265059077
      43f3ae742e00b83672ad6c5bc5b17fdb8f9fe6fe by Gennadiy Rozental <rogeeff@google.com>:
      Internal re-organization
      PiperOrigin-RevId: 264913945
      6a2adf9c08ee1d98cc6b2855a676345c6495294a by Andy Soffer <asoffer@google.com>:
      Publicly expose type names for uniform interval tags as in, for example, absl::IntervalClosedClosedTag, and add equality comparison operators.
      PiperOrigin-RevId: 264861162
      3c90c6e05fd61d56b419cd2d39dab8f17b8711b8 by Abseil Team <absl-team@google.com>:
      Add validity check on returned frame pointer.
      PiperOrigin-RevId: 264858823
      2db87e0cfa0c6bea7ba81684b834cb8a73b7d748 by Gennadiy Rozental <rogeeff@google.com>:
      Add MUST_USE_RESULT attribute to absl::GetFlag to prevent accidental misuse.
      PiperOrigin-RevId: 264782762
      GitOrigin-RevId: d6748c733a70cd74ad9b76a0c9cd6b3fe2cecacf
      Change-Id: I169e9c5358e4f63000c1255e806d26b8afecf5ff
    • Martin's avatar
      supppress unused variable warning for gcc (#372) · 0302d1e5
      Martin authored
      gcc complains with: 
      'stacktraces_enabler' defined but not used [-Wunused-variable] 
      static int stacktraces_enabler = []() { 
  35. 21 Aug, 2019 1 commit
    • Abseil Team's avatar
      Export of internal Abseil changes · 262d74ba
      Abseil Team authored
      1639d4832e961761060e61196e45948e25dc2676 by Derek Mauro <dmauro@google.com>:
      Delete GCC 4.8 test script. GCC 4.8 is no longer supported.
      PiperOrigin-RevId: 264485899
      2a9b2182646b6c6675dce614dcce2c18174303d3 by Derek Mauro <dmauro@google.com>:
      Make btree_test work with exceptions both enabled and disabled
      PiperOrigin-RevId: 264473656
      GitOrigin-RevId: 1639d4832e961761060e61196e45948e25dc2676
      Change-Id: Ica58a2328fa261ecc4c4be410f68f97942074025