-
Notifications
You must be signed in to change notification settings - Fork 21
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
additional tasks by Krivoruchko Dmitry #24
base: main
Are you sure you want to change the base?
additional tasks by Krivoruchko Dmitry #24
Conversation
…ngly_connected_component
76ba3b2
to
9c969a3
Compare
33e6be7
to
b600b27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 15 out of 38. Check the log or trigger a new build to see more.
additional_tasks/chem_experiments_chain/src/tarjan_algorithm.hpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 15 out of 33. Check the log or trigger a new build to see more.
additional_tasks/petya_and_vasya_labyrinth/src/petya_and_vasya_labyrinth.hpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 15 out of 25. Check the log or trigger a new build to see more.
additional_tasks/petya_and_vasya_labyrinth/src/petya_and_vasya_labyrinth.hpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 15 out of 16. Check the log or trigger a new build to see more.
additional_tasks/petya_and_vasya_labyrinth/src/petya_and_vasya_labyrinth.hpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
* алгоритму Тарьяна. | ||
* @tparam vert_t: тип вершин | ||
* @tparam weight_t: тип весов | ||
* @param graph: исходный граф |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: avoid do-while loops [cppcoreguidelines-avoid-do-while]
do {
^
inline PetyaAndVasyaGraphs ParseMaze( | ||
std::istream& is = std::cin, | ||
SolutionType sol_type = SolutionType::ComplicatedBad) { | ||
Graph<std::string, long> graph; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: enum 'SolutionType' uses a larger base type ('int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]
a;
^
lib/src/graph/for_integral/edge.cpp
Outdated
|
||
template <AllowedVertType vert_t, AllowedWeightType weight_t> | ||
const std::string& Graph<vert_t, weight_t>::Edge::Name() const { | ||
static std::string name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'name' of type 'std::string' (aka 'basic_string') can be declared 'const' [misc-const-correctness]
static std::string name; | |
static std::string const name; |
return Graph(edges); | ||
} | ||
|
||
template <AllowedVertType vert_t, AllowedWeightType weight_t> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: constructor does not initialize these fields: edges_, verts_ [cppcoreguidelines-pro-type-member-init]
template <AllowedVertType vert_t, AllowedWeightType weight_t>
^
lib/src/graph/for_string/edge.cpp
Outdated
|
||
template <AllowedVertType vert_t, AllowedWeightType weight_t> | ||
const std::string& Graph<vert_t, weight_t>::Edge::Name() const { | ||
static std::string name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'name' of type 'std::string' (aka 'basic_string') can be declared 'const' [misc-const-correctness]
lib/src/graph/for_string/edge.cpp:7:
- name;
+ const name;
lib/src/graph/graph.hpp
Outdated
template class Graph<std::string, short>; \ | ||
template class Graph<std::string, int>; \ | ||
template class Graph<std::string, long>; \ | ||
template class Graph<std::string, size_t>; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: constructor does not initialize these fields: start_vert_, end_vert_ [cppcoreguidelines-pro-type-member-init]
lib/src/graph/graph.hpp:405:
- private:
- end_vert_;
+ private:
+ end_vert_;{}{}
lib/src/graph/graph.hpp
Outdated
template class Graph<std::string, long>; \ | ||
template class Graph<std::string, size_t>; \ | ||
template class Graph<std::string, float>; \ | ||
template class Graph<std::string, double>; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: constructor does not initialize these fields: start_vert_, end_vert_ [cppcoreguidelines-pro-type-member-init]
{end_vert} {}
^
lib/src/graph/graph.hpp
Outdated
template class Graph<std::string, long double> | ||
|
||
#define GRAPH_TEMPLATE_CONSTRUCT_FOR_INTEGRAL \ | ||
template class Graph<char, char>; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: constructor does not initialize these fields: start_vert_, end_vert_ [cppcoreguidelines-pro-type-member-init]
eight} {}
^
lib/src/graph/graph.hpp
Outdated
#define GRAPH_TEMPLATE_CONSTRUCT_FOR_INTEGRAL \ | ||
template class Graph<char, char>; \ | ||
template class Graph<char, short>; \ | ||
template class Graph<char, int>; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: constructor does not initialize these fields: start_vert_, end_vert_ [cppcoreguidelines-pro-type-member-init]
t}, end_vert_{edge_pair.second} {}
^
lib/src/graph/graph_methods.cpp
Outdated
bool Graph<vert_t, weight_t>::IsWeighted() const { | ||
if (edges_.empty()) return false; | ||
|
||
bool is_weighted = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'is_weighted' of type 'bool' can be declared 'const' [misc-const-correctness]
bool is_weighted = true; | |
alse;const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
additional_tasks/petya_and_vasya_labyrinth/src/petya_and_vasya_labyrinth.hpp
Show resolved
Hide resolved
f877b9b
to
0ea5cd4
Compare
0ea5cd4
to
5761e70
Compare
No description provided.