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

tidy: add const checks #2525

Merged
merged 1 commit into from
Nov 30, 2023
Merged

tidy: add const checks #2525

merged 1 commit into from
Nov 30, 2023

Conversation

Riolku
Copy link
Contributor

@Riolku Riolku commented Nov 29, 2023

This change implements checking for when methods can be made const, when pointers can be made const, and when returning const objects. Many functions are explicitly excluded from this, since they do not perserve logical constness, since they mutate a pointer member.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0482d9d) 91.58% compared to head (5bb8d10) 91.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2525      +/-   ##
==========================================
- Coverage   91.58%   91.57%   -0.02%     
==========================================
  Files        1029     1029              
  Lines       38042    38040       -2     
==========================================
- Hits        34842    34836       -6     
- Misses       3200     3204       +4     

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

This change implements checking for when methods can be made const, when
pointers can be made const, and when returning const objects. Many
functions are explicitly excluded from this, since they do not perserve
logical constness, since they mutate a pointer member.
@Riolku Riolku merged commit 3ab6bf1 into master Nov 30, 2023
14 checks passed
@Riolku Riolku deleted the tidy-const branch November 30, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants