Skip to content

Commit

Permalink
Fix some includes (clang-tidy)
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jan 13, 2025
1 parent fb55345 commit 0726524
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iterator>
#include <limits>
#include <stdexcept>
#include <string>
Expand Down
3 changes: 2 additions & 1 deletion examples/vtzero-check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <vtzero/vector_tile.hpp>

#include <cstdint>
#include <exception>
#include <iostream>
#include <set>
#include <stdexcept>
#include <string>

namespace {
Expand Down
2 changes: 2 additions & 0 deletions examples/vtzero-create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <vtzero/index.hpp>

#include <cstdint>
#include <exception>
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions examples/vtzero-encode-geom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <vtzero/geometry.hpp>

#include <cctype>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <stdexcept>
Expand Down
2 changes: 1 addition & 1 deletion examples/vtzero-filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <iostream>
#include <limits>
#include <string>

int main(int argc, char* argv[]) {
Expand Down
3 changes: 2 additions & 1 deletion examples/vtzero-stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

#include <vtzero/vector_tile.hpp>

#include <cstdlib>
#include <exception>
#include <iostream>
#include <stdexcept>
#include <string>

namespace {
Expand Down
1 change: 1 addition & 0 deletions examples/vtzero-streets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <vtzero/property_mapper.hpp>
#include <vtzero/vector_tile.hpp>

#include <exception>
#include <iostream>
#include <string>

Expand Down
3 changes: 3 additions & 0 deletions test/fixture_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iterator>
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>

namespace {

Expand Down
4 changes: 4 additions & 0 deletions test/t/test_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
#include <protozero/buffer_fixed.hpp>
#include <protozero/buffer_vector.hpp>

#include <algorithm>
#include <array>
#include <cstdint>
#include <iterator>
#include <string>
#include <type_traits>
#include <vector>

template <typename T>
struct movable_not_copyable {
Expand Down
1 change: 1 addition & 0 deletions test/t/test_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <vtzero/builder.hpp>
#include <vtzero/index.hpp>

#include <cstdint>
#include <map>
#include <string>
#include <unordered_map>
Expand Down
1 change: 1 addition & 0 deletions test/t/test_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vtzero/vector_tile.hpp>

#include <cstddef>
#include <cstdint>

TEST_CASE("default constructed layer") {
vtzero::layer layer{};
Expand Down
1 change: 1 addition & 0 deletions test/t/test_property_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ struct variant_mapping : vtzero::property_value_mapping {

#endif

#include <cstdint>
#include <string>

struct visitor_test_void {
Expand Down
1 change: 1 addition & 0 deletions test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <test.hpp>

#include <fstream>
#include <iterator>
#include <stdexcept>
#include <string>

Expand Down

0 comments on commit 0726524

Please sign in to comment.