Skip to content

Commit e63f84b

Browse files
authored
Merge pull request #2223 from joto/iwyu-cleanup
Clean up some includes
2 parents f83b6b5 + 3e4611a commit e63f84b

30 files changed

+73
-29
lines changed

src/db-copy.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
* For a full list of authors see the git log.
88
*/
99

10-
#include <cassert>
11-
1210
#include "db-copy.hpp"
11+
1312
#include "format.hpp"
1413
#include "logging.hpp"
1514
#include "pgsql.hpp"
1615

16+
#include <cassert>
17+
#include <cstdlib>
18+
#include <iterator>
19+
#include <stdexcept>
20+
1721
void db_deleter_by_id_t::delete_rows(std::string const &table,
1822
std::string const &column,
1923
pg_conn_t const &db_connection)

src/db-copy.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
* For a full list of authors see the git log.
1111
*/
1212

13+
#include "osmtypes.hpp"
14+
#include "pgsql.hpp"
15+
#include "pgsql-params.hpp"
16+
1317
#include <cassert>
1418
#include <condition_variable>
1519
#include <deque>
@@ -22,9 +26,6 @@
2226
#include <variant>
2327
#include <vector>
2428

25-
#include "osmtypes.hpp"
26-
#include "pgsql.hpp"
27-
2829
/**
2930
* Table information necessary for building SQL queries.
3031
*/

src/debug-output.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#include "debug-output.hpp"
1111

12+
#include "expire-output.hpp"
13+
#include "flex-table.hpp"
1214
#include "logging.hpp"
1315

1416
void write_expire_output_list_to_debug_log(

src/debug-output.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
* For a full list of authors see the git log.
1111
*/
1212

13-
#include "expire-output.hpp"
14-
#include "flex-table.hpp"
13+
#include <vector>
14+
15+
class expire_output_t;
16+
class flex_table_t;
1517

1618
void write_expire_output_list_to_debug_log(
1719
std::vector<expire_output_t> const &expire_outputs);

src/expire-output.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "pgsql.hpp"
1515
#include "tile.hpp"
1616

17+
#include <cerrno>
1718
#include <system_error>
1819

1920
std::size_t

src/expire-output.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "tile.hpp"
1414

1515
#include <cassert>
16+
#include <cstddef>
1617
#include <cstdint>
1718
#include <string>
1819
#include <utility>

src/flex-lua-index.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
*/
99

1010
#include "flex-lua-index.hpp"
11+
12+
#include "flex-index.hpp"
13+
#include "flex-table.hpp"
14+
#include "format.hpp"
1115
#include "lua-utils.hpp"
12-
#include "output-flex.hpp"
1316
#include "pgsql-capabilities.hpp"
1417
#include "util.hpp"
1518

19+
#include <stdexcept>
1620
#include <string>
1721
#include <vector>
1822

src/flex-table-column.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "pgsql-capabilities.hpp"
1414
#include "util.hpp"
1515

16-
#include <algorithm>
1716
#include <cassert>
1817
#include <cctype>
1918
#include <cstdlib>

src/flex-table.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020

2121
#include <osmium/osm/item_type.hpp>
2222

23+
#include <cassert>
24+
#include <chrono>
2325
#include <cstddef>
26+
#include <future>
2427
#include <limits>
2528
#include <memory>
2629
#include <string>

src/flex-write.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
* For a full list of authors see the git log.
1111
*/
1212

13-
#include "expire-tiles.hpp"
1413
#include "flex-table.hpp"
1514

1615
#include <lua.hpp>
1716

1817
#include <stdexcept>
18+
#include <string>
19+
#include <vector>
20+
21+
class expire_tiles;
1922

2023
class not_null_exception : public std::runtime_error
2124
{

0 commit comments

Comments
 (0)