mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
treewide: drop includes of <boost/range/adaptors.hpp>
This includes way too much, including <boost/regex.hpp>, which is huge. Drop includes of adaptors.hpp and replace by what is needed. Closes scylladb/scylladb#21187
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
#include "replica/database.hh"
|
||||
#include "alternator/rmw_operation.hh"
|
||||
#include <seastar/core/coroutine.hh>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm/find_end.hpp>
|
||||
#include <unordered_set>
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "utils/overloaded_functor.hh"
|
||||
|
||||
#include <utility>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
namespace api {
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/join.hpp>
|
||||
#include <boost/algorithm/cxx11/any_of.hpp>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "schema/schema.hh"
|
||||
#include <boost/range/algorithm/find.hpp>
|
||||
#include <boost/range/algorithm/remove_if.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/algorithm/cxx11/any_of.hpp>
|
||||
#include "size_tiered_compaction_strategy.hh"
|
||||
#include "leveled_compaction_strategy.hh"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "cql3/statements/property_definitions.hh"
|
||||
|
||||
#include <boost/range/adaptor/transformed.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
|
||||
namespace sstables {
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
#include "user_aggregate.hh"
|
||||
#include "cql3/expr/expression.hh"
|
||||
#include <boost/range/adaptor/transformed.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/filtered.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
|
||||
#include "error_injection_fcts.hh"
|
||||
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
#include <algorithm>
|
||||
#include <boost/algorithm/cxx11/all_of.hpp>
|
||||
#include <boost/algorithm/cxx11/any_of.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/range/adaptor/filtered.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <functional>
|
||||
#include <ranges>
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
* SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0)
|
||||
*/
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm/equal.hpp>
|
||||
#include <boost/range/algorithm/transform.hpp>
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
#include <boost/algorithm/cxx11/any_of.hpp>
|
||||
#include <boost/algorithm/cxx11/all_of.hpp>
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
#include "utils/assert.hh"
|
||||
#include <boost/algorithm/cxx11/all_of.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
#include "data_dictionary/data_dictionary.hh"
|
||||
#include "delete_statement.hh"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "cql3/restrictions/statement_restrictions.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <fmt/ranges.h>
|
||||
#include <seastar/core/coroutine.hh>
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "cql3/statements/strongly_consistent_modification_statement.hh"
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <optional>
|
||||
|
||||
#include <seastar/core/future.hh>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <seastar/core/sstring.hh>
|
||||
|
||||
// Boost features.
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
|
||||
// Scylla includes.
|
||||
#include "db/hints/internal/hint_logger.hh"
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include <seastar/coroutine/parallel_for_each.hh>
|
||||
|
||||
// Boost features.
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
// Scylla includes.
|
||||
#include "db/hints/internal/hint_logger.hh"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
*/
|
||||
|
||||
#include <stdexcept>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <seastar/core/coroutine.hh>
|
||||
#include <seastar/coroutine/maybe_yield.hh>
|
||||
#include <seastar/coroutine/switch_to.hh>
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include <boost/range/algorithm/find_if.hpp>
|
||||
#include <boost/range/algorithm/remove_if.hpp>
|
||||
#include <boost/range/algorithm/transform.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/algorithm/cxx11/any_of.hpp>
|
||||
#include <boost/algorithm/cxx11/all_of.hpp>
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "log.hh"
|
||||
#include "streaming/stream_plan.hh"
|
||||
#include "db/config.hh"
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <fmt/ranges.h>
|
||||
#include <seastar/core/semaphore.hh>
|
||||
#include <seastar/core/sleep.hh>
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
#include <chrono>
|
||||
#include "locator/host_id.hh"
|
||||
#include <boost/range/algorithm/set_algorithm.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm/count_if.hpp>
|
||||
#include <boost/range/algorithm/partition.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/classification.hpp>
|
||||
#include <utility>
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/range/algorithm/find_if.hpp>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <seastar/util/log.hh>
|
||||
|
||||
#include "exceptions/exceptions.hh"
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
#include <absl/container/flat_hash_map.h>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include "exceptions/exceptions.hh"
|
||||
#include "utils/assert.hh"
|
||||
#include "utils/class_registrator.hh"
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include <boost/icl/interval_map.hpp>
|
||||
#include <seastar/core/coroutine.hh>
|
||||
#include <seastar/coroutine/maybe_yield.hh>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <seastar/core/smp.hh>
|
||||
#include "utils/assert.hh"
|
||||
#include "utils/stall_free.hh"
|
||||
|
||||
@@ -8,11 +8,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
|
||||
#include <unordered_map>
|
||||
#include <exception>
|
||||
#include <absl/container/btree_set.h>
|
||||
#include <fmt/core.h>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
#include <seastar/core/abort_source.hh>
|
||||
#include <seastar/core/sstring.hh>
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include <algorithm>
|
||||
#include <random>
|
||||
#include <optional>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/intrusive/list.hpp>
|
||||
#include "gms/i_endpoint_state_change_subscriber.hh"
|
||||
#include "gms/gossiper.hh"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "cql3/util.hh"
|
||||
#include "utils/assert.hh"
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
#include <chrono>
|
||||
|
||||
#include <seastar/core/sleep.hh>
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
#include "utils/user_provided_param.hh"
|
||||
#include "version.hh"
|
||||
#include "dht/range_streamer.hh"
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include "transport/server.hh"
|
||||
#include <seastar/core/rwlock.hh>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "topology_state_machine.hh"
|
||||
#include "log.hh"
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
|
||||
namespace service {
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
#include <compare>
|
||||
#include <limits>
|
||||
#include <stdexcept>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <seastar/core/on_internal_error.hh>
|
||||
#include <seastar/core/smp.hh>
|
||||
#include <seastar/core/sstring.hh>
|
||||
#include <boost/range/adaptor/transformed.hpp>
|
||||
#include "types/types.hh"
|
||||
#include "utils/assert.hh"
|
||||
#include "utils/UUID_gen.hh"
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
#include <seastar/core/on_internal_error.hh>
|
||||
#include <seastar/coroutine/parallel_for_each.hh>
|
||||
@@ -16,7 +15,6 @@
|
||||
#include <seastar/rpc/rpc_types.hh>
|
||||
#include <seastar/util/defer.hh>
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
#include "db/timeout_clock.hh"
|
||||
#include "message/messaging_service.hh"
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/range/adaptor/filtered.hpp>
|
||||
#include <boost/range/algorithm/transform.hpp>
|
||||
#include <boost/range/join.hpp>
|
||||
#include <seastar/core/on_internal_error.hh>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/range/adaptor/uniqued.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <fmt/ranges.h>
|
||||
#include "gms/inet_address.hh"
|
||||
#include "locator/types.hh"
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <fmt/ranges.h>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/ranges.h>
|
||||
#include "test/lib/scylla_test_case.hh"
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
#include "utils/to_string.hh"
|
||||
#include "service/topology_coordinator.hh"
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
using namespace locator;
|
||||
using namespace replica;
|
||||
using namespace service;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
*/
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/algorithm.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <set>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/range/adaptor/sliced.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <fmt/ranges.h>
|
||||
#include "partition_slice_builder.hh"
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "utils/assert.hh"
|
||||
#include "utils/overloaded_functor.hh"
|
||||
#include <boost/program_options.hpp>
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
#include <iostream>
|
||||
#include <fmt/ranges.h>
|
||||
#include <seastar/util/defer.hh>
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/algorithm_ext.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/indexed.hpp>
|
||||
#include <boost/range/adaptor/filtered.hpp>
|
||||
#include <json/json.h>
|
||||
#include <fmt/ranges.h>
|
||||
#include "test/lib/cql_test_env.hh"
|
||||
|
||||
@@ -6,12 +6,14 @@
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include <seastar/testing/perf_tests.hh>
|
||||
#include <seastar/util/closeable.hh>
|
||||
|
||||
#include <boost/range/adaptor/sliced.hpp>
|
||||
#include <boost/range/adaptor/strided.hpp>
|
||||
|
||||
#include "test/lib/simple_schema.hh"
|
||||
#include "test/lib/simple_position_reader_queue.hh"
|
||||
#include "test/perf/perf.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include <boost/range/adaptor/reversed.hpp>
|
||||
#include <boost/range/algorithm/find_if.hpp>
|
||||
#include <fmt/chrono.h>
|
||||
#include <fmt/ranges.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <filesystem>
|
||||
#include <set>
|
||||
#include <fmt/chrono.h>
|
||||
|
||||
Reference in New Issue
Block a user