Export of internal Abseil changes.

--
4e043a11b4c10a24e84046827ee16f47e11e35cc by Abseil Team <absl-team@google.com>:

Merge of https://github.com/abseil/abseil-cpp/pull/136

PiperOrigin-RevId: 218197648

--
e61f06e1e601061a443feaa8c5207c52437bd641 by Abseil Team <absl-team@google.com>:

Don't include <iostream> into int128, it's wasteful

Including iostream emits a global constructor for initializing std::cout and
friends, which isn't actually used by this file.

PiperOrigin-RevId: 218156386

--
8a6c82396e4c956be7f285328aec131cb4965f16 by Xiaoyi Zhang <zhangxy@google.com>:

Fix MSVC compiler warnings on discarding return values of functions with 'nodiscard'
attribute.

PiperOrigin-RevId: 217883401

--
abf3e3a0f22bc4070df9dbc9a4ef4d883ed686bf by Tom Manshreck <shreck@google.com>:

Update public README to add new libraries

PiperOrigin-RevId: 217879399

--
43b3b420a4e861711abbfbd497b8f2b3de17ec8c by Abseil Team <absl-team@google.com>:

Import of CCTZ from GitHub.

PiperOrigin-RevId: 217780963

--
1c8831947ca6a65a63842e6bd5f37a7c102a4e1b by Abseil Team <absl-team@google.com>:

Fix typo in a comment (missing comma in usage example).

PiperOrigin-RevId: 217776645
GitOrigin-RevId: 4e043a11b4c10a24e84046827ee16f47e11e35cc
Change-Id: I8999ae928da7a0030b4ecfd8d13da8522fdd013a
pull/200/head
Ashley Hedberg 6 years ago
commit c476da141c
  1. 10
      README.md
  2. 14
      absl/container/CMakeLists.txt
  3. 3
      absl/memory/CMakeLists.txt
  4. 2
      absl/memory/memory_test.cc
  5. 2
      absl/numeric/int128.cc
  6. 1
      absl/strings/CMakeLists.txt
  7. 10
      absl/strings/string_view_benchmark.cc
  8. 4
      absl/strings/string_view_test.cc
  9. 2
      absl/time/civil_time.h
  10. 2
      absl/time/internal/cctz/src/tzfile.h
  11. 2
      absl/time/internal/cctz/testdata/version
  12. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Abidjan
  13. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Accra
  14. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Addis_Ababa
  15. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Algiers
  16. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Asmara
  17. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Asmera
  18. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Bamako
  19. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Bangui
  20. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Banjul
  21. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Bissau
  22. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Blantyre
  23. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Brazzaville
  24. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Bujumbura
  25. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Cairo
  26. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Casablanca
  27. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Ceuta
  28. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Conakry
  29. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Dakar
  30. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Dar_es_Salaam
  31. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Djibouti
  32. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Douala
  33. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/El_Aaiun
  34. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Freetown
  35. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Gaborone
  36. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Harare
  37. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Johannesburg
  38. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Juba
  39. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Kampala
  40. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Khartoum
  41. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Kigali
  42. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Kinshasa
  43. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Lagos
  44. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Libreville
  45. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Lome
  46. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Luanda
  47. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Lubumbashi
  48. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Lusaka
  49. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Malabo
  50. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Maputo
  51. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Maseru
  52. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Mbabane
  53. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Mogadishu
  54. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Monrovia
  55. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Nairobi
  56. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Ndjamena
  57. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Niamey
  58. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Nouakchott
  59. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Ouagadougou
  60. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Porto-Novo
  61. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Sao_Tome
  62. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Timbuktu
  63. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Tripoli
  64. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Tunis
  65. BIN
      absl/time/internal/cctz/testdata/zoneinfo/Africa/Windhoek
  66. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Adak
  67. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Anchorage
  68. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Anguilla
  69. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Antigua
  70. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Araguaina
  71. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Buenos_Aires
  72. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Catamarca
  73. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/ComodRivadavia
  74. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Cordoba
  75. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Jujuy
  76. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/La_Rioja
  77. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Mendoza
  78. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Rio_Gallegos
  79. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Salta
  80. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/San_Juan
  81. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/San_Luis
  82. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Tucuman
  83. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Argentina/Ushuaia
  84. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Aruba
  85. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Asuncion
  86. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Atikokan
  87. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Atka
  88. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Bahia
  89. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Bahia_Banderas
  90. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Barbados
  91. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Belem
  92. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Belize
  93. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Blanc-Sablon
  94. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Boa_Vista
  95. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Bogota
  96. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Boise
  97. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Buenos_Aires
  98. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Cambridge_Bay
  99. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Campo_Grande
  100. BIN
      absl/time/internal/cctz/testdata/zoneinfo/America/Cancun
  101. Some files were not shown because too many files have changed in this diff Show More

@ -63,10 +63,14 @@ Abseil contains the following C++ library components:
<br /> The `algorithm` library contains additions to the C++ `<algorithm>`
library and container-based versions of such algorithms.
* [`container`](absl/container/)
<br /> The `container` library contains additional STL-style containers.
<br /> The `container` library contains additional STL-style containers,
including Abseil's unordered "Swiss table" containers.
* [`debugging`](absl/debugging/)
<br /> The `debugging` library contains code useful for enabling leak
checks. Future updates will add stacktrace and symbolization utilities.
checks, and stacktrace and symbolization utilities.
* [`hash`](absl/hash/)
<br /> The `hash` library contains the hashing framework and default hash
functor implementations for hashable types in Abseil.
* [`memory`](absl/memory/)
<br /> The `memory` library contains C++11-compatible versions of
`std::make_unique()` and related memory management facilities.
@ -90,6 +94,8 @@ Abseil contains the following C++ library components:
* [`types`](absl/types/)
<br /> The `types` library contains non-container utility types, like a
C++11-compatible version of the C++17 `std::optional` type.
* [`utility`](absl/utility/)
<br /> The `utility` library contains utility and helper code.
## License

@ -48,11 +48,9 @@ list(APPEND CONTAINER_INTERNAL_HEADERS
)
absl_library(
absl_header_library(
TARGET
absl_container
SOURCES
"internal/raw_hash_set.cc"
EXPORT_NAME
container
)
@ -164,13 +162,3 @@ absl_test(
PUBLIC_LIBRARIES
${TEST_INSTANCE_TRACKER_TEST_PUBLIC_LIBRARIES}
)
absl_test(
TARGET
raw_hash_set_test
SOURCES
"internal/raw_hash_set_test.cc"
PUBLIC_LIBRARIES
absl::base absl::hash absl_throw_delegate test_instance_tracker_lib
)

@ -66,6 +66,3 @@ absl_test(
PRIVATE_COMPILE_FLAGS
${ABSL_EXCEPTIONS_FLAG}
)

@ -145,7 +145,7 @@ TEST(Make_UniqueTest, NotAmbiguousWithStdMakeUnique) {
explicit TakesStdType(const std::vector<int> &vec) {}
};
using absl::make_unique;
make_unique<TakesStdType>(std::vector<int>());
(void)make_unique<TakesStdType>(std::vector<int>());
}
#if 0

@ -17,7 +17,7 @@
#include <stddef.h>
#include <cassert>
#include <iomanip>
#include <iostream> // NOLINT(readability/streams)
#include <ostream> // NOLINT(readability/streams)
#include <sstream>
#include <string>
#include <type_traits>

@ -460,4 +460,3 @@ absl_test(
absl::base
)

@ -151,7 +151,7 @@ void BM_find_string_view_len_one(benchmark::State& state) {
std::string haystack(state.range(0), '0');
absl::string_view s(haystack);
for (auto _ : state) {
s.find("x"); // not present; length 1
benchmark::DoNotOptimize(s.find("x")); // not present; length 1
}
}
BENCHMARK(BM_find_string_view_len_one)->Range(1, 1 << 20);
@ -160,7 +160,7 @@ void BM_find_string_view_len_two(benchmark::State& state) {
std::string haystack(state.range(0), '0');
absl::string_view s(haystack);
for (auto _ : state) {
s.find("xx"); // not present; length 2
benchmark::DoNotOptimize(s.find("xx")); // not present; length 2
}
}
BENCHMARK(BM_find_string_view_len_two)->Range(1, 1 << 20);
@ -169,7 +169,7 @@ void BM_find_one_char(benchmark::State& state) {
std::string haystack(state.range(0), '0');
absl::string_view s(haystack);
for (auto _ : state) {
s.find('x'); // not present
benchmark::DoNotOptimize(s.find('x')); // not present
}
}
BENCHMARK(BM_find_one_char)->Range(1, 1 << 20);
@ -178,7 +178,7 @@ void BM_rfind_one_char(benchmark::State& state) {
std::string haystack(state.range(0), '0');
absl::string_view s(haystack);
for (auto _ : state) {
s.rfind('x'); // not present
benchmark::DoNotOptimize(s.rfind('x')); // not present
}
}
BENCHMARK(BM_rfind_one_char)->Range(1, 1 << 20);
@ -193,7 +193,7 @@ void BM_worst_case_find_first_of(benchmark::State& state, int haystack_len) {
absl::string_view s(haystack);
for (auto _ : state) {
s.find_first_of(needle);
benchmark::DoNotOptimize(s.find_first_of(needle));
}
}

@ -678,9 +678,9 @@ TEST(StringViewTest, STL2Substr) {
EXPECT_EQ(a.substr(23, absl::string_view::npos), c);
// throw exception
#ifdef ABSL_HAVE_EXCEPTIONS
EXPECT_THROW(a.substr(99, 2), std::out_of_range);
EXPECT_THROW((void)a.substr(99, 2), std::out_of_range);
#else
EXPECT_DEATH(a.substr(99, 2), "absl::string_view::substr");
EXPECT_DEATH((void)a.substr(99, 2), "absl::string_view::substr");
#endif
}

@ -342,7 +342,7 @@ using CivilYear =
//
// absl::CivilSecond cs = ...;
// absl::civil_year_t y = cs.year();
// cs = absl::CivilSecond(y, 1, 1, 0, 0 0); // CivilSecond(CivilYear(cs))
// cs = absl::CivilSecond(y, 1, 1, 0, 0, 0); // CivilSecond(CivilYear(cs))
//
using civil_year_t = time_internal::cctz::year_t;

@ -1,3 +1,5 @@
/* Layout and location of TZif files. */
#ifndef TZFILE_H
#define TZFILE_H

@ -1 +1 @@
2018e-2-g99dd695
2018f-1-g401c42d

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save