Skip to content

Commit

Permalink
cleanup(storage): fix MOAR IWYU warnings (googleapis#14529)
Browse files Browse the repository at this point in the history
My glob expressions missed a lot of them. This pass I am fixing
`std::move`, `std::string`, and `std::vector`.
  • Loading branch information
coryan authored Jul 22, 2024
1 parent a31bd17 commit 2fb11b9
Show file tree
Hide file tree
Showing 245 changed files with 431 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ of what it's like to use one of these C++ libraries.
```cc
#include "google/cloud/storage/client.h"
#include <iostream>
#include <string>

int main(int argc, char* argv[]) {
if (argc != 2) {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ this library.
```cc
#include "google/cloud/storage/client.h"
#include <iostream>
#include <string>

int main(int argc, char* argv[]) {
if (argc != 2) {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/bucket_name.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "absl/strings/match.h"
#include "absl/strings/strip.h"
#include <ostream>
#include <string>
#include <utility>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/bucket_name_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <gmock/gmock.h>
#include <sstream>
#include <string>
#include <utility>

namespace google {
namespace cloud {
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/async/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include "google/cloud/storage/internal/async/default_options.h"
#include "google/cloud/storage/internal/grpc/stub.h"
#include "google/cloud/grpc_options.h"
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/async/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#include "google/cloud/internal/group_options.h"
#include "google/cloud/status_or.h"
#include <google/storage/v2/storage.pb.h>
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/client_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <google/protobuf/text_format.h>
#include <gmock/gmock.h>
#include <string>
#include <utility>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/object_responses.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <cstdint>
#include <map>
#include <string>
#include <utility>
#include <vector>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/reader_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/testing_util/async_sequencer.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <utility>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/rewriter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "google/cloud/storage/testing/canonical_errors.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <utility>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/token_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "google/cloud/storage/async/token.h"
#include <gmock/gmock.h>
#include <type_traits>
#include <utility>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/write_payload.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "absl/strings/cord.h"
#include <cstdint>
#include <string>
#include <utility>
#include <vector>

namespace google {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/async/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "absl/types/variant.h"
#include <google/storage/v2/storage.pb.h>
#include <memory>
#include <string>
#include <utility>

namespace google {
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/async/writer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "google/cloud/storage/testing/canonical_errors.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <string>
#include <utility>

namespace google {
namespace cloud {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#include <iomanip>
#include <random>
#include <sstream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include "google/cloud/internal/make_status.h"
#include <iterator>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#include "google/cloud/internal/absl_str_join_quiet.h"
#include <iterator>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "google/cloud/storage/benchmarks/benchmark_utils.h"
#include <gmock/gmock.h>
#include <string>

namespace google {
namespace cloud {
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/benchmarks/benchmark_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#include "absl/time/time.h"
#include <future>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/benchmark_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <iostream>
#include <sstream>
#include <string>
#include <utility>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/bounded_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <condition_variable>
#include <deque>
#include <mutex>
#include <utility>

namespace google {
namespace cloud {
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/benchmarks/create_dataset_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#include "google/cloud/storage/benchmarks/create_dataset_options.h"
#include "google/cloud/internal/make_status.h"
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
#include <future>
#include <iomanip>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace {
namespace gcs = ::google::cloud::storage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include <future>
#include <iomanip>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace {
namespace gcs = ::google::cloud::storage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#include <future>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace {
namespace gcs = ::google::cloud::storage;
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/benchmarks/throughput_experiment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "google/cloud/storage/internal/grpc/ctype_cord_workaround.h"
#include "google/cloud/grpc_error_delegate.h"
#include <google/storage/v2/storage.grpc.pb.h>
#include <string>
#include <utility>
#endif // GOOGLE_CLOUD_CPP_STORAGE_HAVE_GRPC
#include <curl/curl.h>
#include <iterator>
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/benchmarks/throughput_experiment_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "google/cloud/internal/getenv.h"
#include "google/cloud/testing_util/status_matchers.h"
#include <gmock/gmock.h>
#include <string>
#include <utility>

namespace google {
namespace cloud {
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/benchmarks/throughput_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#include "absl/strings/str_split.h"
#include "absl/time/time.h"
#include <sstream>
#include <string>
#include <utility>
#include <vector>

namespace google {
namespace cloud {
Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/benchmarks/throughput_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "google/cloud/storage/benchmarks/benchmark_utils.h"
#include <chrono>
#include <cstdint>
#include <string>

namespace google {
namespace cloud {
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/storage/benchmarks/throughput_result_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "absl/strings/match.h"
#include <gmock/gmock.h>
#include <algorithm>
#include <string>
#include <utility>

namespace google {
namespace cloud {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <gmock/gmock.h>
#include <iostream>
#include <string>
#include <utility>

namespace {

Expand Down
1 change: 1 addition & 0 deletions google/cloud/storage/examples/storage_async_samples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <map>
#include <random>
#include <string>
#include <utility>
#include <vector>

namespace {
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/examples/storage_bucket_acl_samples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/examples/storage_bucket_cors_samples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/examples/storage_bucket_iam_samples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
#include "google/cloud/storage/examples/storage_examples_common.h"
#include "google/cloud/internal/getenv.h"
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
3 changes: 3 additions & 0 deletions google/cloud/storage/examples/storage_bucket_samples.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include "google/cloud/internal/getenv.h"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <gmock/gmock.h>
#include <iostream>
#include <string>
#include <utility>

namespace {

Expand Down
Loading

0 comments on commit 2fb11b9

Please sign in to comment.