Skip to content
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

Enable cpp core guidlines checks. #3723

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Enable cpp core guidlines checks. #3723

wants to merge 7 commits into from

Conversation

taylding-amd
Copy link
Contributor

Fixes #2231

@taylding-amd taylding-amd self-assigned this Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.16%. Comparing base (6acc1f9) to head (fad9e4f).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3723   +/-   ##
========================================
  Coverage    92.16%   92.16%           
========================================
  Files          515      515           
  Lines        21978    21978           
========================================
  Hits         20256    20256           
  Misses        1722     1722           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@taylding-amd taylding-amd marked this pull request as ready for review December 19, 2024 19:34
@TedThemistokleous TedThemistokleous added the Cleanup Cleans up code from stale bits/warnings/previous changes for a previous feature PR label Dec 20, 2024
@pfultz2
Copy link
Collaborator

pfultz2 commented Dec 20, 2024

This is still missing enabling the cppcoreguidelines-rvalue-reference-param-not-moved check, which seems to be a much more important check.

@taylding-amd taylding-amd requested a review from pfultz2 December 20, 2024 22:17
@taylding-amd
Copy link
Contributor Author

This is still missing enabling the cppcoreguidelines-rvalue-reference-param-not-moved check, which seems to be a much more important check.

Thanks for pointing it out, the check is enabled now.

@@ -171,9 +171,10 @@ TEST_CASE(fp32_fp16_test)
};

auto test_case = [&](std::vector<std::string>&& op_names) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function parameter should be const-ref.

@@ -894,15 +894,16 @@ void program::mark(const parameter_map& params, marker&& m)
eval(params);
this->finish();
// Start marking
m.mark_start(*this);
auto moved_marker = std::move(m);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take the marker by value instead of forcing a move.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Cleans up code from stale bits/warnings/previous changes for a previous feature PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix clang errors caused by cppcoreguidelines-avoid-capture-default-when-capturing-this
4 participants