-
Notifications
You must be signed in to change notification settings - Fork 61
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
Remove all clang tidy warnings from the core library of Lethe #1243
Conversation
1f8eb28
to
881f23b
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.
Really nice to have that now!
This PR corrects all the warning in core from clang tidy. I saw other places that could be changed in the code, but they were not flag by the CI. I will push them tomorrow or Thursday.
@@ -291,7 +291,7 @@ fill_vectors_from_file(std::map<std::string, std::vector<double>> &map, | |||
line_of_data = Utilities::string_to_double(list_of_words_clean); | |||
for (unsigned int i = 0; i < line_of_data.size(); ++i) | |||
{ | |||
map[column_names[i]].push_back(line_of_data[i]); | |||
map[column_names[i]].emplace_back(line_of_data[i]); |
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.
What is the advantage of using emplace_back here?
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.
Like we discussed :) prevents the generation of a copy.
Description This is a follow up to #1243 but for the solvers library. Testing All tests should pass.
…polymtl#1243) Description Since I have deployed the new CI action, we are able to identify many more alerts using clang sanitizer. This PR aims at removing the alerts from the core library of Lethe. We still have warnings when we compile with clang, but this will need an additional CI instance check. Testing All units tests and application tests should pass before this is merged. Former-commit-id: afe7dbb
Description This is a follow up to chaos-polymtl#1243 but for the solvers library. Testing All tests should pass. Former-commit-id: 65020c6
Description Since I have deployed the new CI action, we are able to identify many more alerts using clang sanitizer. This PR aims at removing the alerts from the core library of Lethe. We still have warnings when we compile with clang, but this will need an additional CI instance check. Testing All units tests and application tests should pass before this is merged. Former-commit-id: afe7dbb
Description
Since I have deployed the new CI action, we are able to identify many more alerts using clang sanitizer. This PR aims at removing the alerts from the core library of Lethe. We still have warnings when we compile with clang, but this will need an additional CI instance check.
Testing
All units tests and application tests should pass before this is merged.
Code related list:
Pull request related list: