Skip to content

Commit b1dcb28

Browse files
committed
[lint] Fix code checker warnings
1 parent 7339e43 commit b1dcb28

20 files changed

Lines changed: 31 additions & 25 deletions

File tree

include/astar/pgr_astar.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4141
#include <algorithm>
4242
#include <vector>
4343
#include <set>
44+
#include <map>
4445

4546
#include "cpp_common/basePath_SSEC.hpp"
4647
#include "cpp_common/pgr_base_graph.hpp"

include/bellman_ford/pgr_bellman_ford.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3939
#include <string>
4040
#include <functional>
4141
#include <limits>
42+
#include <map>
4243
#include "cpp_common/pgr_messages.h"
4344
#include "cpp_common/basePath_SSEC.hpp"
4445
#include "cpp_common/pgr_base_graph.hpp"

include/bellman_ford/pgr_edwardMoore.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2222
#define INCLUDE_BELLMAN_FORD_PGR_EDWARDMOORE_HPP_
2323
#pragma once
2424

25-
#include<limits>
26-
#include<algorithm>
27-
#include<vector>
25+
#include <limits>
26+
#include <algorithm>
27+
#include <vector>
2828
#include <deque>
29+
#include <map>
2930

3031

3132
#include "cpp_common/basePath_SSEC.hpp"

include/breadthFirstSearch/pgr_binaryBreadthFirstSearch.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3030
#include <cmath>
3131
#include <limits>
3232
#include <vector>
33+
#include <map>
3334

3435
#include "cpp_common/basePath_SSEC.hpp"
3536
#include "cpp_common/pgr_base_graph.hpp"

include/chinese/pgr_chinesePostman.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ PgrDirectedChPPGraph::PgrDirectedChPPGraph(
112112
edgeToIdx(), originalEdges(),
113113
resultGraph(), VToVecid(), edgeVisited(),
114114
pathStack(), resultPath(),
115-
edges(), sources(), targets()
116-
{
115+
edges(), sources(), targets() {
117116
pgassert(totalEdges > 0);
118117
pgassert(pathStack.empty());
119118

include/cpp_common/basic_vertex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Basic_vertex {
4747
explicit Basic_vertex(const int64_t _id) :
4848
id(_id) {}
4949

50-
Basic_vertex& operator=(const Basic_vertex&)=default;
50+
Basic_vertex& operator=(const Basic_vertex&) = default;
5151

5252
Basic_vertex(const pgr_edge_t &other, bool is_source) :
5353
id(is_source? other.source : other.target) {}

include/dagShortestPath/pgr_dagShortestPath.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4343
#include <sstream>
4444
#include <functional>
4545
#include <limits>
46+
#include <map>
4647

4748
#include "cpp_common/basePath_SSEC.hpp"
4849
#include "cpp_common/pgr_base_graph.hpp"

include/dijkstra/pgr_dijkstra.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ class Pgr_dijkstra {
691691
.distance_inf(std::numeric_limits<double>::infinity())
692692
.visitor(dijkstra_many_goal_visitor(goals, n_goals, goals_found)));
693693
} catch(found_goals &) {
694-
for(const auto &g : goals) {
694+
for (const auto &g : goals) {
695695
if (goals_found.find(g) == goals_found.end()) {
696696
/* goal was not found */
697697
predecessors[g] = g;

include/max_flow/pgr_maximumcardinalitymatching.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class PgrCardinalityGraph {
108108

109109
std::vector<pgr_basic_edge_t>
110110
get_matched_vertices() {
111-
112111
std::vector<V> mate_map(boost::num_vertices(boost_graph));
113112
std::vector<pgr_basic_edge_t> matched_vertices;
114113
maximum_cardinality_matching(mate_map);

include/tsp/tour.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ namespace tsp {
4141

4242
class Tour {
4343
using difference_type = std::vector<size_t>::difference_type;
44+
4445
public:
4546
Tour(const Tour &) = default;
4647

0 commit comments

Comments
 (0)