Remove superflous iostreams include from header files (#6901)

This commit is contained in:
Dennis Luxen 2024-05-25 09:17:45 +02:00 committed by GitHub
parent 640df69aa1
commit 8306ed8ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 15 additions and 30 deletions

View File

@ -24,7 +24,6 @@
#include <boost/optional.hpp>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <stdexcept>

View File

@ -18,6 +18,7 @@
#include <cerrno>
#include <cstring>
#include <iostream>
#include <tuple>
#include <type_traits>

View File

@ -12,7 +12,7 @@
#include "util/typedefs.hpp"
#include <iomanip>
#include <iostream>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>

View File

@ -30,7 +30,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <array>
#include <exception>
#include <iostream>
#include <string>
#include <utility>

View File

@ -1,6 +1,8 @@
#ifndef SOURCE_MACROS_HPP
#define SOURCE_MACROS_HPP
#ifndef EXCEPTION_UTILS_HPP
#define EXCEPTION_UTILS_HPP
#include <cstring>
#include <string>
// Helper macros, don't use these ones
// STRIP the OSRM_PROJECT_DIR from the front of a filename. Expected to come
@ -12,4 +14,4 @@
// This is the macro to use
#define SOURCE_REF (OSRM_SOURCE_FILE_ + ":" + std::to_string(__LINE__))
#endif // SOURCE_MACROS_HPP
#endif // EXCEPTION_UTILS_HPP

View File

@ -10,7 +10,6 @@ extern "C"
#include <boost/filesystem.hpp>
#include <iostream>
#include <string>
namespace osrm::util

View File

@ -9,7 +9,6 @@
#include <tbb/parallel_sort.h>
#include <iostream>
#include <memory>
#include <utility>

View File

@ -5,6 +5,7 @@
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <random>
#include <string>

View File

@ -9,8 +9,6 @@
#include <limits>
#include <string>
#include <iostream>
namespace osrm::extractor
{

View File

@ -50,7 +50,6 @@
#include <atomic>
#include <bitset>
#include <chrono>
#include <iostream>
#include <memory>
#include <thread>
#include <tuple>

View File

@ -1,6 +1,5 @@
#include "partitioner/bisection_graph_view.hpp"
#include <iostream>
#include <iterator>
#include <boost/assert.hpp>

View File

@ -31,7 +31,6 @@
#include <cstdint>
#include <fstream>
#include <iostream>
#include <iterator>
#include <new>
#include <string>

View File

@ -3,6 +3,9 @@
#include "util/exception_utils.hpp"
#include <boost/algorithm/string/case_conv.hpp>
#include <istream>
#include <string>
namespace osrm::storage
{
std::istream &operator>>(std::istream &in, FeatureDataset &datasets)

View File

@ -9,6 +9,7 @@
#include <cstdlib>
#include <exception>
#include <iostream>
#include <new>
#include <thread>

View File

@ -1,16 +1,8 @@
#include "util/coordinate_calculation.hpp"
#ifndef NDEBUG
#include "util/log.hpp"
#endif
#include "osrm/coordinate.hpp"
#ifndef NDEBUG
#include <bitset>
#endif
#include <iomanip>
#include <iostream>
#include <limits>
#include "util/coordinate_calculation.hpp"
#include <cstdint>
namespace osrm::util
{

View File

@ -1,7 +1,5 @@
#include "util/exception.hpp"
#include <utility>
// This function exists to 'anchor' the class, and stop the compiler from
// copying vtable and RTTI info into every object file that includes
// this header. (Caught by -Wweak-vtables under Clang.)

View File

@ -1,11 +1,7 @@
#include "util/guidance/turn_lanes.hpp"
#include <algorithm>
#include <iostream>
#include <tuple>
#include <boost/assert.hpp>
namespace osrm::util::guidance
{
LaneTuple::LaneTuple() : lanes_in_turn(0), first_lane_from_the_right(INVALID_LANEID)