summaryrefslogtreecommitdiff
path: root/absl/utility
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-07-14 09:31:09 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-07-14 09:32:02 -0700
commitef68bd3d31aa1dcacb8fec44f2eaa9c16f67b6bd (patch)
tree983d70567111dbb78f251abd304dd5b1d17c3abe /absl/utility
parent305a0088cebf6bcae3cd98aaf0bb5fc5f64d0912 (diff)
Minor clang-tidy cleanups
using decl 'Pointee' is unused missing #include <utility> for 'std::move' missing #include <memory> for 'std::unique_ptr' PiperOrigin-RevId: 460980847 Change-Id: I5ebfca39d6b93ef396b32d1b91a5d8748d43e018
Diffstat (limited to 'absl/utility')
-rw-r--r--absl/utility/utility_test.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/absl/utility/utility_test.cc b/absl/utility/utility_test.cc
index f044ad64..2f0509aa 100644
--- a/absl/utility/utility_test.cc
+++ b/absl/utility/utility_test.cc
@@ -1,4 +1,4 @@
-// Copyright 2017 The Abseil Authors.
+// Copyright 2022 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -14,10 +14,12 @@
#include "absl/utility/utility.h"
+#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>
+#include <utility>
#include <vector>
#include "gmock/gmock.h"
@@ -35,10 +37,10 @@ namespace {
// Both the unused variables and the name length warnings are due to calls
// to absl::make_index_sequence with very large values, creating very long type
// names. The resulting warnings are so long they make build output unreadable.
-#pragma warning( push )
-#pragma warning( disable : 4503 ) // decorated name length exceeded
-#pragma warning( disable : 4101 ) // unreferenced local variable
-#endif // _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4503) // decorated name length exceeded
+#pragma warning(disable : 4101) // unreferenced local variable
+#endif // _MSC_VER
using ::testing::ElementsAre;
using ::testing::Pointee;
@@ -227,8 +229,7 @@ TEST(ApplyTest, NonCopyableArgument) {
}
TEST(ApplyTest, NonCopyableResult) {
- EXPECT_THAT(absl::apply(Factory, std::make_tuple(42)),
- ::testing::Pointee(42));
+ EXPECT_THAT(absl::apply(Factory, std::make_tuple(42)), Pointee(42));
}
TEST(ApplyTest, VoidResult) { absl::apply(NoOp, std::tuple<>()); }
@@ -373,4 +374,3 @@ TEST(MakeFromTupleTest, Pair) {
}
} // namespace
-