Skip to content
Open
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
3 changes: 1 addition & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ Checks: >
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-slicing,
-cppcoreguidelines-special-member-functions,
-cppcoreguidelines-use-default-member-init,
-cppcoreguidelines-virtual-class-destructor
-cppcoreguidelines-use-default-member-init

CheckOptions:
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
Expand Down
2 changes: 1 addition & 1 deletion include/bdAstar/bdAstar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Pgr_bdAstar : public Pgr_bidirectional<G> {
m_log << "pgr_bdAstar constructor\n";
}

~Pgr_bdAstar() = default;
virtual ~Pgr_bdAstar() = default;

Path pgr_bdAstar(V start_vertex, V end_vertex,
int heuristic,
Expand Down
2 changes: 1 addition & 1 deletion include/bdDijkstra/bdDijkstra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Pgr_bdDijkstra : public Pgr_bidirectional<G> {
m_log << "pgr_bdDijkstra constructor\n";
}

~Pgr_bdDijkstra() = default;
virtual ~Pgr_bdDijkstra() = default;

Path pgr_bdDijkstra(V start_vertex, V end_vertex, bool only_cost) {
m_log << "pgr_bdDijkstra\n";
Expand Down
2 changes: 1 addition & 1 deletion include/cpp_common/bidirectional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Pgr_bidirectional {
m_log << "constructor\n";
}

~Pgr_bidirectional() = default;
virtual ~Pgr_bidirectional() = default;

std::string log() const {return m_log.str();}
void clean_log() {m_log.clear();}
Expand Down
1 change: 1 addition & 0 deletions include/spanningTree/kruskal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace functions {
template <class G>
class Pgr_kruskal : public Pgr_mst<G> {
public:
virtual ~Pgr_kruskal() = default;
std::vector<MST_rt> kruskal(G &graph);

std::vector<MST_rt> kruskalBFS(
Expand Down
3 changes: 3 additions & 0 deletions include/spanningTree/mst.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ namespace functions {

template <class G>
class Pgr_mst {
public:
virtual ~Pgr_mst() = default;

protected:
typedef typename G::B_G B_G;
typedef typename G::V V;
Expand Down
1 change: 1 addition & 0 deletions include/spanningTree/prim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Pgr_prim : public Pgr_mst<G> {
typedef typename G::B_G B_G;

public:
virtual ~Pgr_prim() = default;
std::vector<MST_rt> prim(G &graph);

std::vector<MST_rt> primBFS(
Expand Down