-
Notifications
You must be signed in to change notification settings - Fork 23
Alexander_homework #9
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
base: main
Are you sure you want to change the base?
Alexander_homework #9
Conversation
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
26b2d5c
to
c38b4cb
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 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
@@ -0,0 +1,49 @@ | |||
#ifndef __TOPOLOG_SORT_H__ | |||
#define __TOPOLOG_SORT_H__ |
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: declaration uses identifier 'TOPOLOG_SORT_H', which is a reserved identifier [bugprone-reserved-identifier]
#define __TOPOLOG_SORT_H__ | |
#define TOPOLOG_SORT_H_ |
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
@@ -0,0 +1,49 @@ | |||
#ifndef __TOPOLOG_SORT_H__ | |||
#define __TOPOLOG_SORT_H__ |
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: declaration uses identifier 'TOPOLOG_SORT_H', which is a reserved identifier [bugprone-reserved-identifier]
#define __TOPOLOG_SORT_H__ | |
#define TOPOLOG_SORT_H_ |
add_paths(links); | ||
} | ||
|
||
Node<T, NameType>* find_via_name(NameType 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.
FindByName по кодстайлу
template <typename T> | ||
Graph<T, int>& topological_sort(Graph<T, int>& g) { | ||
std::vector<Node<T, int>*> marked_points; | ||
for (auto i : g.nodes) { |
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.
(auto node : g.nodes)
а ещё лучше node_ptr так понятнее будет что там указатель)
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.
к сожалению эот класс я позже полностью поменял из за нехватки времени, но на будущее учту, спасибо)
No description provided.