Skip to content

Commit

Permalink
(C++)(lint) adding mising includes after code checkr works
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Feb 8, 2024
1 parent 589167a commit 977d18a
Show file tree
Hide file tree
Showing 42 changed files with 61 additions and 6 deletions.
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
12 changes: 8 additions & 4 deletions tools/scripts/code_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ 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
ls code_linter
ls code_linter/cpplint
echo code_linter installed
fi

pushd code_linter || exit 1
git pull
popd || exit 1
ls code_linter
ls code_linter/cpplint
echo code_linter installed

DIRECTORY="$1"

if test -z "$DIRECTORY"; then
Expand Down

0 comments on commit 977d18a

Please sign in to comment.