Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(C++)(lint) adding mising includes after code checkr works #2613

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: 'cpplint/cpplint'
ref: "1.6.1"
ref: "develop"
path: "code_linter/cpplint"
- name: Run linter
run: |
Expand Down
1 change: 1 addition & 0 deletions src/allpairs/floydWarshall_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "allpairs/pgr_allpairs.hpp"
#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/allpairs/johnson_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "allpairs/pgr_allpairs.hpp"
#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/astar/astar_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <algorithm>
#include <vector>
#include <string>

#include "astar/astar.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/bdAstar/bdAstar_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <algorithm>
#include <vector>
#include <string>

#include "bdAstar/bdAstar.hpp"

Expand Down
3 changes: 3 additions & 0 deletions src/bdDijkstra/bdDijkstra_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>


#include "cpp_common/combinations.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/bellman_ford/bellman_ford_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>

#include "bellman_ford/pgr_bellman_ford.hpp"

Expand Down
2 changes: 2 additions & 0 deletions src/bellman_ford/bellman_ford_neg_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>

#include "bellman_ford/pgr_bellman_ford.hpp"

Expand Down
3 changes: 3 additions & 0 deletions src/bellman_ford/edwardMoore_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>

#include "bellman_ford/pgr_edwardMoore.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/breadthFirstSearch/binaryBreadthFirstSearch_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <algorithm>
#include <string>
#include <set>
#include <map>

#include "breadthFirstSearch/pgr_binaryBreadthFirstSearch.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/chinese/chinesePostman_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <set>
#include <string>

// work for only directed
#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/coloring/edgeColoring_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include "drivers/coloring/edgeColoring_driver.h"

#include <vector>
#include <string>

#include "coloring/pgr_edgeColoring.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/components/articulationPoints_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "components/pgr_components.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/components/biconnectedComponents_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "components/pgr_components.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/components/bridges_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "components/pgr_components.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/components/connectedComponents_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "cpp_common/pgdata_getters.hpp"
#include "cpp_common/pgr_alloc.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/components/strongComponents_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>


#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/cpp_common/combinations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <set>
#include <deque>
#include <vector>
#include <string>
#include "cpp_common/pgdata_getters.hpp"
#include "cpp_common/basePath_SSEC.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/cpp_common/get_check_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ extern "C" {

#include <vector>
#include <set>
#include <string>

#include "cpp_common/undefPostgresDefine.hpp"
#include "cpp_common/pgr_alloc.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/cpp_common/pgdata_getters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <cmath>
#include <cfloat>
#include <sstream>
#include <set>

#include "cpp_common/get_data.hpp"
#include "cpp_common/get_check_data.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/dagShortestPath/dagShortestPath_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>

#include "dagShortestPath/pgr_dagShortestPath.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/dijkstra/dijkstraVia_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "c_types/routes_t.h"
#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/dijkstra/dijkstra_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <vector>
#include <algorithm>
#include <limits>
#include <string>


#include "cpp_common/pgdata_getters.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/driving_distance/drivedist_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>
#include <map>

#include "cpp_common/pgdata_getters.hpp"
#include "dijkstra/drivingDist.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/driving_distance/withPoints_dd_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <algorithm>
#include <string>
#include <map>

#include "cpp_common/pgdata_getters.hpp"
#include "dijkstra/drivingDist.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/ksp/ksp_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "yen/pgr_ksp.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/ksp/withPoints_ksp_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "cpp_common/pgdata_getters.hpp"
#include "cpp_common/combinations.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/lineGraph/lineGraphFull_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "c_types/line_graph_full_rt.h"
#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/lineGraph/lineGraph_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <utility>
#include <string>

#include "cpp_common/pgdata_getters.hpp"
#include "cpp_common/pgr_alloc.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/max_flow/edge_disjoint_paths_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <vector>
#include <set>
#include <string>

#include "max_flow/pgr_maxflow.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/max_flow/max_flow_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <vector>
#include <set>
#include <string>

#include "max_flow/pgr_maxflow.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/max_flow/maximum_cardinality_matching_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#include <sstream>
#include <vector>
#include <string>

#include "c_types/edge_bool_t_rt.h"

Expand Down
1 change: 1 addition & 0 deletions src/max_flow/minCostMaxFlow_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <set>
#include <string>


#include "c_types/costFlow_t.h"
Expand Down
1 change: 1 addition & 0 deletions src/mincut/stoerWagner_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>

#include "mincut/pgr_stoerWagner.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/spanningTree/randomSpanningTree_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>


#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/trsp/trspVia_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <algorithm>
#include <string>

#include "dijkstra/pgr_dijkstraVia.hpp"
#include "c_types/routes_t.h"
Expand Down
1 change: 1 addition & 0 deletions src/trsp/trspVia_withPoints_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <deque>
#include <vector>
#include <algorithm>
#include <string>


#include "c_types/routes_t.h"
Expand Down
1 change: 1 addition & 0 deletions src/trsp/trsp_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <set>
#include <map>
#include <cassert>
#include <string>

#include "trsp/pgr_trspHandler.h"
#include "cpp_common/pgdata_getters.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/trsp/trsp_withPoints_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <limits>
#include <set>
#include <map>
#include <string>

#include "cpp_common/pgdata_getters.hpp"
#include "cpp_common/pgr_alloc.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/withPoints/withPointsVia_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <sstream>
#include <deque>
#include <vector>
#include <string>


#include "c_types/routes_t.h"
Expand Down
4 changes: 3 additions & 1 deletion src/withPoints/withPoints_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <vector>
#include <cassert>
#include <limits>

#include <string>
#include <map>
#include <set>

#include "withPoints/pgr_withPoints.hpp"
#include "cpp_common/pgdata_getters.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/code_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if ! test -d code_linter; then
# Get our fork of codespell that adds --words-white-list and full filename support for -S option
mkdir code_linter
pushd code_linter || exit 1
git clone --branch 1.6.1 https://github.com/cpplint/cpplint
git clone --branch develop https://github.com/cpplint/cpplint
# cd styleguide || exit 1
# git checkout gh-pages
popd || exit 1
Expand Down
Loading