Skip to content

Commit

Permalink
Export of internal Abseil changes.
Browse files Browse the repository at this point in the history
--
ffe1bf0e5f98c77cf4193f24ae9ce94d16a72c6e by Alex Strelnikov <strel@google.com>:

Remove accidental duplication of conanfile.py.

PiperOrigin-RevId: 226926125

--
daf639ddd32c57d1c5ab99b26a9b15107f47ce16 by Derek Mauro <dmauro@google.com>:

Fix the CMake build for absl::container.
This target is deprecated and will be removed in the future.

Fixes abseil/abseil-cpp#238

PiperOrigin-RevId: 226921798

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

Cleanup: Fix some ClangTidy warnings.

PiperOrigin-RevId: 226678127

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

Cleanup: Fix some ClangTidy warnings.

PiperOrigin-RevId: 226567814
GitOrigin-RevId: ffe1bf0e5f98c77cf4193f24ae9ce94d16a72c6e
Change-Id: Idfe30b8b3229082eb7db4bfa928d3257be7dce1a
  • Loading branch information
4s5t2os41n authored and gennadiycivil committed Dec 26, 2018
1 parent 57a2c7f commit 896888f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 95 deletions.
2 changes: 1 addition & 1 deletion CMake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ Here's a non-exhaustive list of Abseil CMake public targets:
```cmake
absl::base
absl::algorithm
absl::container
absl::debugging
absl::flat_hash_map
absl::memory
absl::meta
absl::numeric
Expand Down
83 changes: 0 additions & 83 deletions absl/conanfile.py

This file was deleted.

4 changes: 0 additions & 4 deletions absl/container/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
absl_cc_library(
NAME
container
SRCS
"internal/raw_hash_set.cc"
COPTS
${ABSL_DEFAULT_COPTS}
PUBLIC
)

Expand Down
4 changes: 2 additions & 2 deletions absl/strings/escaping.cc
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@ size_t Base64EscapeInternal(const unsigned char* src, size_t szsrc, char* dest,

// Three bytes of data encodes to four characters of cyphertext.
// So we can pump through three-byte chunks atomically.
if (szsrc >= 3) { // "limit_src - 3" is UB if szsrc < 3
while (cur_src < limit_src - 3) { // as long as we have >= 32 bits
if (szsrc >= 3) { // "limit_src - 3" is UB if szsrc < 3.
while (cur_src < limit_src - 3) { // While we have >= 32 bits.
uint32_t in = absl::big_endian::Load32(cur_src) >> 8;

cur_dest[0] = base64[in >> 18];
Expand Down
4 changes: 2 additions & 2 deletions absl/strings/internal/str_format/bind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class ArgContext {
explicit ArgContext(absl::Span<const FormatArgImpl> pack) : pack_(pack) {}

// Fill 'bound' with the results of applying the context's argument pack
// to the specified 'props'. We synthesize a BoundConversion by
// to the specified 'unbound'. We synthesize a BoundConversion by
// lining up a UnboundConversion with a user argument. We also
// resolve any '*' specifiers for width and precision, so after
// this call, 'bound' has all the information it needs to be formatted.
// Returns false on failure.
bool Bind(const UnboundConversion *props, BoundConversion *bound);
bool Bind(const UnboundConversion* unbound, BoundConversion* bound);

private:
absl::Span<const FormatArgImpl> pack_;
Expand Down
3 changes: 0 additions & 3 deletions absl/strings/strip_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@

namespace {

using testing::ElementsAre;
using testing::IsEmpty;

TEST(Strip, ConsumePrefixOneChar) {
absl::string_view input("abc");
EXPECT_TRUE(absl::ConsumePrefix(&input, "a"));
Expand Down

0 comments on commit 896888f

Please sign in to comment.