Commit graph

513 commits

Author SHA1 Message Date
zhangxy988
579f2879ac
Merge pull request #51 from behrenhoff/master
Fix CMakeLists.txt for ostringstream_test
2017-12-01 15:20:20 -05:00
zhangxy988
3562f9bb79
Merge pull request #55 from rongjiecomputer/master
MSVC fixes
2017-12-01 13:55:00 -05:00
Loo Rong Jie
e98380282f Add comments about warning flags 2017-11-29 08:37:53 +08:00
Loo Rong Jie
79ae60ed97 MSVC fixes 2017-11-28 13:36:16 +08:00
Abseil Team
79610733f4 Changes imported from Abseil "staging" branch:
- 5c323578d5492e9fd6f24d049ed3f55c9dc136f8 Fix typo. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 5c323578d5492e9fd6f24d049ed3f55c9dc136f8
Change-Id: I75af467a356ac6037738aadbffe93cbcd7a1a747
2017-11-27 14:53:53 -05:00
Wolf Behrenhoff
56d970fd0e Fix CMakeLists.txt for ostringstream_test
After commit 99b92c87 compiling with CMake stopped working. This commit fixes the issue.
2017-11-27 12:05:25 +01:00
Abseil Team
ae0cef35ae Changes imported from Abseil "staging" branch:
- 55c7dd8ad1570b4e6ce2103ed4d4b6becdea0d96 Remove line continuations which require CMake >= 3.0.  Al... by Jon Cohen <cohenjon@google.com>
  - ee66ad72a90259d6286bbfea7241ed976bb0f6fb Change absl::ParseDuration() to avoid double.  This allow... by Abseil Team <absl-team@google.com>
  - 89cf4cd49d8ff25cb3d29f06b2090029a2024e89 Internal change by Gennadiy Rozental <rogeeff@google.com>
  - cdb5879bf6aaf6bbd2ad1fe4a2b144bbdf0389c7 Internal change by Gennadiy Rozental <rogeeff@google.com>
  - e7b29d11bf24a63bf7637689ada8be7d619844fc Internal change by Gennadiy Rozental <rogeeff@google.com>
  - 2d4fc08d5d64a7760ad6230eccdb5b8014c2b0c3 Update the exception-safety testing framework. by Jon Cohen <cohenjon@google.com>

GitOrigin-RevId: 55c7dd8ad1570b4e6ce2103ed4d4b6becdea0d96
Change-Id: I6b560cbc4570dfc5aa9a2f90e84d69904df7eac5
2017-11-22 15:25:43 -05:00
Abseil Team
6a88b40771 Changes imported from Abseil "staging" branch:
- cdaf98233a24b0ea992224e4cca526c72c8c2079 Qualify documented code examples with absl namespace. by Alex Strelnikov <strel@google.com>

GitOrigin-RevId: cdaf98233a24b0ea992224e4cca526c72c8c2079
Change-Id: I8b53dc15adc041cd2ce40ed7ffafc148d38a4912
2017-11-20 17:48:02 -05:00
Abseil Team
4f3edeb1b4 Changes imported from Abseil "staging" branch:
- c910f1792eae8cfdabb93bc261bf26e72f9a6717 Fix uint128 streaming to work with std::ios::internal. by Alex Strelnikov <strel@google.com>

GitOrigin-RevId: c910f1792eae8cfdabb93bc261bf26e72f9a6717
Change-Id: I8ccce2ce6ac91ef7ce16fa8870a718fdfb8fa9a6
2017-11-17 14:58:36 -05:00
Abseil Team
b05b79538f Changes imported from Abseil "staging" branch:
- 33cefac68ed8720bd7468e59b8fd9a13d7b7a8bf Fix example in comment of absl::Condition. by Abseil Team <absl-team@google.com>
  - 2c95e2895d6bf36b712c0b72cf2a42cbe5442a70 Internal change by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 33cefac68ed8720bd7468e59b8fd9a13d7b7a8bf
Change-Id: I34c1a4976c019a548dc94a2a9cf471243fcb623c
2017-11-16 10:59:22 -05:00
Abseil Team
af8c291d9a Changes imported from Abseil "staging" branch:
- 950e7d514bea97ea500284a53318330ec1f04f76 Remove accidental references to "header_modules". by Greg Falcon <gfalcon@google.com>

GitOrigin-RevId: 950e7d514bea97ea500284a53318330ec1f04f76
Change-Id: I482955fe0364a57ed8c6e229fdb6f86fc63faf6e
2017-11-15 16:39:55 -05:00
Abseil Team
99b92c8736 Changes imported from Abseil "staging" branch:
- 79d5e27b30551028a35084bf0f314d14339f816b Adds "()" suffix for Minutes() and ToDoubleHours() in com... by Abseil Team <absl-team@google.com>
  - 7d43f4d8f056066bd8e4577e15cde6807f6191ec Change type traits tests to static_asserts; Add trivially... by Alex Strelnikov <strel@google.com>
  - b443886fd36b240df78683c676b7ebae07c9e91a Internal cleanup by Abseil Team <absl-team@google.com>
  - ef226810f398f0980e2158bfa352ab8ac5d97d83 Avoid weak virtual table warnings (-Wweak-vtables) and re... by Jorg Brown <jorg@google.com>
  - 76911667bed455c2c7330f8ee27b959bac032e41 Internal change by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 79d5e27b30551028a35084bf0f314d14339f816b
Change-Id: I752b04c882ff6677af7ee91b1e4f424417a1e4eb
2017-11-15 10:43:52 -05:00
Abseil Team
02f833cb81 Changes imported from Abseil "staging" branch:
- 89d5b08eeb96f195151a340772148fe7ed0a18f6 Put the internal ABSL_PRETTY_FUNCTION API behind a visibi... by Matt Armstrong <marmstrong@google.com>

GitOrigin-RevId: 89d5b08eeb96f195151a340772148fe7ed0a18f6
Change-Id: I6588a15c09a53a43ff87847e593864b1468dd375
2017-11-14 15:55:11 -05:00
Abseil Team
95ddf85f80 Changes imported from Abseil "staging" branch:
- 5677afe8f626bb9db6d8bf9f25ba3d835ffa12d6 Internal TSAN bookkeeping change. by Greg Falcon <gfalcon@google.com>
  - c7492bad6fe6c8f106d3fcb1f8a939ea73b1a962 MSVC fix. by Alex Strelnikov <strel@google.com>

GitOrigin-RevId: 5677afe8f626bb9db6d8bf9f25ba3d835ffa12d6
Change-Id: I1b8497508c8005a094824b4ccf9b220812b81bdb
2017-11-13 16:52:47 -05:00
Abseil Team
9e94e488f5 Changes imported from Abseil "staging" branch:
- 28631b3dbc582cb88a637cc4c70886e38a4be0cf Refactoring to support production kernel Futex implementa... by Derek Mauro <dmauro@google.com>
  - 411e7bb779c32bbc02b5fa6f516087a02fcb0812 Update comments about leap smearing. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 28631b3dbc582cb88a637cc4c70886e38a4be0cf
Change-Id: I0506aa2705212cd466460cae60182b0c2c667972
2017-11-10 13:09:51 -05:00
Abseil Team
778abb7c27 Changes imported from Abseil "staging" branch:
- 92c268e7400e97e201bfc15c85ed78ece4dd90a7 Add absl qualification to To{Int64,Double}Seconds() examp... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 92c268e7400e97e201bfc15c85ed78ece4dd90a7
Change-Id: I236517ec3623222fbd9b6a290b7ee3925fa68490
2017-11-09 16:13:41 -05:00
Abseil Team
9850abf25d Changes imported from Abseil "staging" branch:
- 55a89fda61ddf8aa76d0a3b6bc44bf6b5b6eadfc Internal cleanup by Abseil Team <absl-team@google.com>
  - b7646f979ee40c5716833692f2eb24b8058cf4c8 Internal cleanup by Gennadiy Rozental <rogeeff@google.com>
  - 12a4051b0ea91c6a6211f738fa24e1bc7064c09a Merging changes from https://github.com/abseil/abseil-cpp... by Daniel Katz <katzdm@google.com>
  - 2e259588d62118a70837a3d8408cb6c763f48420 Replace EXPECT_TRUE(StrContains(...)) with an assert exam... by Abseil Team <absl-team@google.com>
  - 8f7d251b3486f2b03dc712ad0822b9dc87a7964b Make Uint128(High|Low)64 constexpr. by Alex Strelnikov <strel@google.com>
  - 955fd38a23896e003105defc0ef221a2c10d392e Internal change by Jon Cohen <cohenjon@google.com>

GitOrigin-RevId: 55a89fda61ddf8aa76d0a3b6bc44bf6b5b6eadfc
Change-Id: Ia062fe8a0559aa3ace3736d2a53f6da13af40b2c
2017-11-08 13:52:20 -05:00
Daniel M. Katz
badd8bd27f
Merge pull request #41 from Mokosha/patch-1
Fix README link to CMake README
2017-11-08 12:00:35 -05:00
Pavel Krajcevski
3391e12624
Fix README link to CMake README 2017-11-08 08:44:42 -08:00
Abseil Team
ee2e3f667f Changes imported from Abseil "staging" branch:
- 3eaa80f3372d679f9c7ecd7661971d7a4ee3766a Include implementation files in header. by Alex Strelnikov <strel@google.com>

GitOrigin-RevId: 3eaa80f3372d679f9c7ecd7661971d7a4ee3766a
Change-Id: Ib77722fc43798a7321443eced4eb9da2b7e40064
2017-11-07 11:03:01 -05:00
Abseil Team
075cf62092 Changes imported from Abseil "staging" branch:
- c3a608de577e0c278b50916ad4803549929f8f72 Merging https://github.com/abseil/abseil-cpp/pull/8/ inte... by Gennadiy Civil <misterg@google.com>
  - d0b528cdf5843db871784c629cb4e7c5165af716 explicitly cast -1 for Span::npos by Jon Cohen <cohenjon@google.com>
  - 32066311a4379f1144f029aaa3740af59b1e364e Remove GUARDED_VAR and PT_GUARDED_VAR entirely. by Abseil Team <absl-team@google.com>
  - 3d3c69d97d15b5c6457906631054109094c083a6 Remove unneeded inline on constexpr definitions. by Alex Strelnikov <strel@google.com>
  - a9a8fe71f90d0b80de8e77375228a7185032636b Remove unneeded lint suppression. by Alex Strelnikov <strel@google.com>

GitOrigin-RevId: c3a608de577e0c278b50916ad4803549929f8f72
Change-Id: I0897ce0b11e41f83fed8d88f18e079a15d086527
2017-11-06 15:58:57 -05:00
Gennadiy Civil
78e1abca86
Merge pull request #8 from adevress/master
Add CMake support
2017-11-06 12:56:37 -08:00
Gennadiy Civil
2eedcf0204
Whitespace 2017-11-06 12:23:58 -08:00
Jonathan Cohen
42a5f28b30
Update README.md 2017-11-02 16:01:16 -04:00
Abseil Team
da336a84e9 Changes imported from Abseil "staging" branch:
- 9234c6d8d5a55f77642dd0bb09f3844540d913de Fix misplaced whitespace in method comment. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 9234c6d8d5a55f77642dd0bb09f3844540d913de
Change-Id: Ia8a5e7fdff4a907ae711587e8955e1bae8d13a2a
2017-11-02 14:17:03 -04:00
Adrien Devresse
a3322e3bfc Continue CMake support improvement
- Update documentation
- Remove type target
- Remove typos
- simplify target
- improve 1-1 matchign with Bazel targets
2017-11-02 18:47:47 +01:00
Abseil Team
c56e7827d6 Changes imported from Abseil "staging" branch:
- e4999febdfea4d392284bfbc9dce9520b26d98cb Remove an erronous __attribute__((...)) tag. by Abseil Team <absl-team@google.com>
  - 61db01b3eaad3563aa2f97d41799ef1339d57c04 Remove the default parameter value from overridden overfl... by Abseil Team <absl-team@google.com>
  - e7dc1ee6bb523b2173915e1978f7e3831f5484f6 Fix the include guards for exception_safety_testing.h by Jon Cohen <cohenjon@google.com>

GitOrigin-RevId: e4999febdfea4d392284bfbc9dce9520b26d98cb
Change-Id: I7837e125138a1e623d9b6394c0ea5f624b904ea2
2017-11-01 15:31:01 -04:00
Abseil Team
8db6cfd1ea Changes imported from Abseil "staging" branch:
- 8bcd472c6f1a7c8a3a7aac07d7e5e3f90685fe5e Create an exception-safety testing framework for Abseil by Jon Cohen <cohenjon@google.com>
  - 17cc4bb19ba86e2bc45e9381bd07450c06134903 Fix typo. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 8bcd472c6f1a7c8a3a7aac07d7e5e3f90685fe5e
Change-Id: Ia1f4f12d25c375e0af34fea052a4a82dc964eeff
2017-10-31 10:31:44 -04:00
Abseil Team
c8bd28c58b Changes imported from Abseil "staging" branch:
- 0726b35bb91aa98b87b340db9019fe7bdb19fe52 Fixing typo when checking CUDA compiler version, and use ... by Abseil Team <absl-team@google.com>
  - 3c94139e0e2ca6387c0498f24c9e44172208fffc Update comment of GUARDED_BY to match feedback provided b... by Abseil Team <absl-team@google.com>
  - 116d0427b845613213e26afc1203621ac7bd6910 Turn off ABSL TLS support for buggy versions of the Andro... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 0726b35bb91aa98b87b340db9019fe7bdb19fe52
Change-Id: I861e4fb27d77904e705ccbcb4054f10c3f43e158
2017-10-30 15:04:23 -04:00
Gennadiy Civil
200b5a7cb0
Merge branch 'master' into master 2017-10-30 10:56:35 -04:00
Adrien Devresse
d5134a7f11 CMake support
- initial cmake support
- downgrade cmake requirement to 2.8.12
- factorize cmake test flags / libs options
- refactor test / library under helpers functions, follow bazel's style
- Add fix for MSVC and Windows support ( thx @patrikfors )
- Switch to default "add_subdirectory()" usage mode
- add CMake/README.md for instructions
- add header-only cmake target generator
- map absl target to absl:: namespace
2017-10-27 18:46:36 +02:00
Abseil Team
0fece732a2 Changes imported from Abseil "staging" branch:
- 5b675ef65e4977b3ac778a75a21e99db1ebe78e7 Remove "not an official google project" disclaimer. by Abseil Team <absl-team@google.com>
  - 77d2aacc03efe6841612b38bcbb745dde1ad7d3e Avoid weak virtual table warnings (-Wweak-vtables) and re... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 5b675ef65e4977b3ac778a75a21e99db1ebe78e7
Change-Id: Ia0d1d6e39169c7ad9783d25dc92dad041de3a966
2017-10-27 10:47:50 -04:00
Abseil Team
dedb4eec6c Changes imported from Abseil "staging" branch:
- fbff677ef850865ea67ed6771a8ed348be181e8e Modify sysinfo.cc to support GetTID on Akaros. by Abseil Team <absl-team@google.com>
  - f1c2929e08a3d4181e08cb5014c4a569306fd922 Two functions that did not refer to their arguments unles... by Abseil Team <absl-team@google.com>
  - ee43cc3bfdb4d84d40eee31fb25ecdc1aa060f47 Support Akaros (https://akaros.org) in the ABSL spinlock_... by Abseil Team <absl-team@google.com>
  - 6869c8c5253126459d6c7f0aa708d8612c8e5963 Make sure vdso_base_ is constant-intialized. by Abseil Team <absl-team@google.com>
  - d54e0366efc8d44cd5da5fd157734da966dc45e8 Add missing include for assert used by ABSL_ASSERT. by Derek Mauro <dmauro@google.com>
  - a5139775f3917bb5201e7fc838135766daa05b8d When building against GLIBC-2.16 or newer, use getauxval(... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: fbff677ef850865ea67ed6771a8ed348be181e8e
Change-Id: Ie3549f6ef054783dd104304d2faf8d9800c16b83
2017-10-24 14:52:11 -04:00
Abseil Team
5fcbe86e7b Changes imported from Abseil "staging" branch:
- 989557e6b443a81b5ad9bd0d0c704edbe96c09c9 Make InlinedVector::ShiftRight update the vector's size -... by Jon Cohen <cohenjon@google.com>
  - ffc2e2a6f169bbfa823890f21d13e16110cd0206 Fix issues when passing references aliasing into an Inlin... by Jon Cohen <cohenjon@google.com>
  - 2fce2f87043f8c044889b4aab828e6edc20da0d9 In C++14 or later, alias absl::make_unique to std::make_u... by Abseil Team <absl-team@google.com>
  - cb83e95b486c59fd6acfa956e97f42253dd158bd Roll back change to avoid weak virtual table warnings (-W... by Abseil Team <absl-team@google.com>
  - fb4ea46062895cb9340166c9dcc61ec4467bd834 Avoid weak virtual table warnings (-Wweak-vtables) and re... by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 989557e6b443a81b5ad9bd0d0c704edbe96c09c9
Change-Id: I6b8119c3f16e9d0cb9b5fd6e750502c9dad8e257
2017-10-23 15:26:40 -04:00
Abseil Team
6cf9c73102 Changes imported from Abseil "staging" branch:
- 2620e69367081a44678a4550dff050cf9bef9106 Avoid unused variable warnings. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 2620e69367081a44678a4550dff050cf9bef9106
Change-Id: I0acf38c122e5bbb0864a8ee851ec72dea6c2cca0
2017-10-18 10:56:40 -04:00
Abseil Team
d8ac7afc10 Changes imported from Abseil "staging" branch:
- 1434dc58cc24e004531a09bcf1491773d9bf789e Copybara clang-format by Juemin Yang <jueminyang@google.com>
  - 6296f0f69b23d406a275b7ce2669ea3b18149bb7 Internal change for git pull request #31 by Juemin Yang <jueminyang@google.com>
  - 539940d88cfdf172b4b916d44225cc42839eeee7 Add internal-only ABSL_INTERNAL_HAVE_TSAN_INTERFACE macro. by Daniel Katz <katzdm@google.com>
  - bf85dda4ffdb4dd15084fb8b8db00281481dee90 Add missing pthread.h include to low_level_alloc.cc. by Derek Mauro <dmauro@google.com>

GitOrigin-RevId: 1434dc58cc24e004531a09bcf1491773d9bf789e
Change-Id: I68d6957b0cac32020e4e34dca3243f2f270a4b9c
2017-10-17 16:42:15 -04:00
jueminyang
0a86ee86ef Merge pull request #31 from efcs/add-clang-format
Add Google-style .clang-format file.
2017-10-17 14:50:09 -04:00
Abseil Team
6de53819a7 Changes imported from Abseil "staging" branch:
- 432508bf64998983b3c194d5f164872ce3c2e573 Put visibility tags into absl external build files by Jon Cohen <cohenjon@google.com>
  - 25d59d11e7b833fe632cddb5bf4d76075ae6282b Use ABSL_PREDICT_TRUE instead of *FALSE for the range che... by Jon Cohen <cohenjon@google.com>
  - 8d8a5890a55ddd19aac849748441eeb57c684f10 Better detection for MSVC support on std::optional. by Xiaoyi Zhang <zhangxy@google.com>
  - c1b31e4a97939885c3bbc23ecb093e9619e73ad1 Internal cleanup by Gennadiy Rozental <rogeeff@google.com>
  - 4f56ad20c4eeccc6f5fb21ec6c7191233d34a090 Internal change. by Matt Calabrese <calabrese@google.com>
  - d2a02b52c75c295708170f4d17b7ff442c8d6a97 Fixed a minor typo in the SimpleAtob() function comment. by Abseil Team <absl-team@google.com>
  - 5adbff5c23a45278d06de2ef3a29ea51b0d1269e Internal cleanup by Gennadiy Rozental <rogeeff@google.com>

GitOrigin-RevId: 432508bf64998983b3c194d5f164872ce3c2e573
Change-Id: I32ddd151d3350b96a22e8f1830f19b59374953ad
2017-10-16 12:00:04 -04:00
Eric Fiselier
894a869e7b Add Google-style .clang-format file.
It would be nice if the repository contained a clang-format
config file so that PR submitters could use tooling to correctly
format their code match Googles/abseils style.

This also makes it easier for reviewers to specify what coding style
should be used. ie the one the tooling produces.

The clang-format file is the default Google configuration as dumped by `clang-format`.
I'm not sure abseil will want the exact same options, but it seemed like the right
starting place.
2017-10-12 13:01:26 -06:00
Matt Calabrese
1a9ba5e2e5 Merge pull request #28 from Bronek/constexpr-any-type-id
Make any_internal::FastTypeId() and IdForType() constexpr
2017-10-12 10:09:49 -07:00
Gennadiy Rozental
40b90bcfda Merge pull request #30 from gennadiycivil/master
Restoring bazel-ci integration sans windows node
2017-10-11 17:59:17 -04:00
Gennadiy Civil
31adde521b merging, restoring .ci/abseil-cpp.json 2017-10-11 14:51:49 -07:00
Bronek Kozicki
bbf83057e5 Wrap comment at 80 cols 2017-10-11 22:11:13 +01:00
Abseil Team
029795a9b5 Changes imported from Abseil "staging" branch:
- 3e05f2c346a9faf07088c49d590d49a9199e7edd Simplify Duration's operator-() by Jorg Brown <jorg@google.com>
  - 3c4942375a6d17e887bb6ab7cf2d0e763d58a511 Rewrite `noexcept(noexcept(allocator_type()))` to instead... by Matt Calabrese <calabrese@google.com>
  - 02f35a684201a6aa9f70e8b0a041993676f2d230 Fix comment on remove_prefix since the function is not re... by Abseil Team <absl-team@google.com>
  - ceb40aba8031e0ccec9cd49da844882df100c56f Fix mutex_test under TSAN. by Derek Mauro <dmauro@google.com>
  - 7bd12e7ddc5d074e1b9c9f037879211fa1d81f8c Slight wording tweaks for "adopting" wrappers by Abseil Team <absl-team@google.com>
  - c3580afe092e0357d40b1769314f36da1b887c65 Internal cleanup. by Greg Miller <jgm@google.com>

GitOrigin-RevId: 3e05f2c346a9faf07088c49d590d49a9199e7edd
Change-Id: If3df72fba3803398cfcbb323fb4cb84ec55511aa
2017-10-11 11:01:17 -04:00
Bronek Kozicki
b7bdd3a63d Removed unused type_id() function 2017-10-10 22:07:10 +01:00
misterg
0848aecd43 Removing Windows Bazel-Ci nodes 2017-10-06 15:20:20 -04:00
Bronek Kozicki
89f1f531d3 Make any_internal::FastTypeId() and IdForType() constexpr
This means removing all side effects from FastTypeId(). So rather than instantiate dummy_var in the first call to FastTypeId(), move this responsibility to the linker, and only read its address during execution - guaranteed to never change. This allows for more optimization opportunities, with more explicit uses of constexpr
2017-10-06 19:59:46 +01:00
vslashg
962e9931d5 Merge pull request #23 from gennadiycivil/master
Bazel CI integration , again
2017-10-06 12:42:47 -04:00
Gennadiy Civil
c67d1f6f99 Adding Windows to bazel-ci nodes 2017-10-05 20:59:13 -04:00
Gennadiy Civil
ca751279c5 Adding Windows to bazel-ci nodes 2017-10-05 20:58:07 -04:00