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

Add strong types in FRAM code and refactor ProgramId #312

Merged
merged 15 commits into from
Jul 21, 2024
Merged

Conversation

PatrickKa
Copy link
Contributor

Fixes #308
Fixes #309

@PatrickKa PatrickKa changed the title Strong types Add strong types in FRAM code and refactor ProgramId Jul 21, 2024
@PatrickKa PatrickKa force-pushed the strong-types branch 5 times, most recently from b9d097e to fb153f2 Compare July 21, 2024 14:45
@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2024

Codecov Report

Attention: Patch coverage is 72.22222% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.53%. Comparing base (6a69fce) to head (7626e88).

Files Patch % Lines
Sts1CobcSw/ProgramId/ProgramId.ipp 0.00% 3 Missing ⚠️
Sts1CobcSw/Edu/EduMock.cpp 0.00% 1 Missing ⚠️
Sts1CobcSw/Periphery/Section.ipp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #312      +/-   ##
==========================================
- Coverage   87.58%   87.53%   -0.06%     
==========================================
  Files          28       28              
  Lines         701      706       +5     
  Branches        8        8              
==========================================
+ Hits          614      618       +4     
- Misses         87       88       +1     

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

It is annoying because we often use constant-width integer types.
Also, give it the highest priority apart from the associated header,
which automatically gets priority 0.
It is not about const-correctness, but about const-ness of local
variables and we re not jumping on that bandwagon.
@PatrickKa PatrickKa merged commit 722e53d into master Jul 21, 2024
6 checks passed
@PatrickKa PatrickKa deleted the strong-types branch July 21, 2024 17:34
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.

Use strong_type instead of NamedType for ProgramId Add strong types for fram::Address and fram::Size
3 participants