Skip to content

Commit

Permalink
Fix some includes
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Dec 14, 2024
1 parent da20a50 commit e5d6c07
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/t/area/test_area_id.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "catch.hpp"

#include <osmium/osm/area.hpp>
#include <osmium/osm/item_type.hpp>

TEST_CASE("object_id to area_id conversion") {
REQUIRE( 46 == osmium::object_id_to_area_id( 23, osmium::item_type::way));
Expand Down
2 changes: 2 additions & 0 deletions test/t/area/test_assembler.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include "catch.hpp"

#include <osmium/area/assembler.hpp>
#include <osmium/area/assembler_config.hpp>
#include <osmium/builder/attr.hpp>
#include <osmium/memory/buffer.hpp>
#include <osmium/osm/area.hpp>
#include <osmium/osm/way.hpp>

using namespace osmium::builder::attr; // NOLINT(google-build-using-namespace)

Expand Down
3 changes: 1 addition & 2 deletions test/t/builder/test_attr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#include <osmium/osm.hpp>
#include <osmium/osm/types.hpp>

#include <cstdint>
#include <cstddef>
#include <initializer_list>
#include <iterator>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions test/t/builder/test_object_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <osmium/memory/buffer.hpp>
#include <osmium/osm.hpp>

#include <cstddef>
#include <string>

constexpr const std::size_t test_buffer_size = 1024UL * 10UL;
Expand Down
1 change: 1 addition & 0 deletions test/t/geom/test_coordinates.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "catch.hpp"

#include <osmium/geom/coordinates.hpp>
#include <osmium/osm/location.hpp>

#include <string>

Expand Down
2 changes: 2 additions & 0 deletions test/t/geom/test_crs.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "catch.hpp"

#include <osmium/geom/coordinates.hpp>
#include <osmium/geom/projection.hpp>
#include <osmium/geom/util.hpp>

TEST_CASE("CRS") {
const osmium::geom::CRS wgs84{4326};
Expand Down
1 change: 0 additions & 1 deletion test/t/geom/test_factory_with_projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <osmium/geom/mercator_projection.hpp>
#include <osmium/geom/projection.hpp>
#include <osmium/geom/wkb.hpp>
#include <osmium/geom/wkt.hpp>

#include <string>
Expand Down
2 changes: 2 additions & 0 deletions test/t/osm/test_area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <osmium/osm/area.hpp>
#include <osmium/osm/crc.hpp>

#include <cstdint>
#include <ctime>
#include <string>

using namespace osmium::builder::attr; // NOLINT(google-build-using-namespace)
Expand Down
1 change: 1 addition & 0 deletions test/t/osm/test_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <osmium/osm/location.hpp>

#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <iterator>
Expand Down
1 change: 1 addition & 0 deletions test/t/osm/test_relation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <osmium/osm/crc.hpp>
#include <osmium/osm/relation.hpp>

#include <cstdint>
#include <string>

using namespace osmium::builder::attr; // NOLINT(google-build-using-namespace)
Expand Down
2 changes: 1 addition & 1 deletion test/t/util/test_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <osmium/io/detail/read_write.hpp>
#include <osmium/util/file.hpp>

#include <stdexcept>
#include <string>
#include <system_error>

TEST_CASE("file_size(int) and file_offset() of known file") {
const std::string file_name{with_data_dir("t/util/known_file_size")};
Expand Down
1 change: 1 addition & 0 deletions test/t/util/test_memory_mapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <osmium/util/file.hpp>
#include <osmium/util/memory_mapping.hpp>

#include <cstdint>
#include <cstdlib>
#include <limits>
#include <utility>
Expand Down
2 changes: 2 additions & 0 deletions test/t/util/test_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <osmium/util/misc.hpp>

#include <cstdint>

namespace {

template <typename T>
Expand Down

0 comments on commit e5d6c07

Please sign in to comment.