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

Modernization/updating c++ pass 1 #43

Conversation

SeanAlling-DojoFive
Copy link
Contributor

@SeanAlling-DojoFive SeanAlling-DojoFive commented Jan 27, 2023

First pass addressing Issue #41.

Pushing branch to to get exposure on changes.

@SeanAlling-DojoFive SeanAlling-DojoFive force-pushed the modernization/updating-c++-pass-1 branch from bf343d7 to 57c3e51 Compare January 28, 2023 20:36
@sierrafoxtrot
Copy link
Owner

Thanks @SeanAlling-DojoFive, this is looking great. I'm hoping to get through the review today.

If there are no questions/issues, are you happy if I squash-merge? I'm still getting the lay of the land on what is considered good form on GH for merging contributions and to me this one looks like a hefty but single update if that makes sense.

@SeanAlling-DojoFive
Copy link
Contributor Author

SeanAlling-DojoFive commented Jan 29, 2023 via email

@sierrafoxtrot
Copy link
Owner

No worries, take your time. I'll kick off when you think it's ready.

@SeanAlling-DojoFive
Copy link
Contributor Author

Okay, I have gone through every file and attempted to move all default member functions to be in class. @sierrafoxtrot I think now is a good time to start taking a look.

My ultimate goal of this first PR is to address update all constructors. Other PR's will focus on other C++11 modernization's.

@SeanAlling-DojoFive SeanAlling-DojoFive force-pushed the modernization/updating-c++-pass-1 branch from a838629 to d51468d Compare February 2, 2023 08:14
@SeanAlling-DojoFive SeanAlling-DojoFive changed the title [WIP] Modernization/updating c++ pass 1 Modernization/updating c++ pass 1 Feb 2, 2023
@SeanAlling-DojoFive SeanAlling-DojoFive force-pushed the modernization/updating-c++-pass-1 branch 2 times, most recently from 6168fc6 to a9cf1bb Compare February 2, 2023 08:36
@jtxa
Copy link
Contributor

jtxa commented Feb 2, 2023

MegaLinter found a trailing whitespace.

Can you please also update .clang-tidy and remove those disabled messages that you fixed. So the QA can check them in future.

FYI, here is a summary, why the clang-tidy configuration looks like that, at the moment.

@SeanAlling-DojoFive SeanAlling-DojoFive force-pushed the modernization/updating-c++-pass-1 branch from a9cf1bb to 173d205 Compare February 3, 2023 05:48
@sierrafoxtrot
Copy link
Owner

sierrafoxtrot commented Feb 3, 2023

@SeanAlling-DojoFive , it's might be worth noting that I need to manually approve the running of the checks which is no doubt a pain (I can relax this setting but not for recently created GH accounts :-( ). We likely have a timezone difference which is slowing things down for you. If you submit a separate smaller commit, I can merge and GH will no longer consider you a first-time-committer and the checks should trigger automatically speeding up the cycle.

@SeanAlling-DojoFive SeanAlling-DojoFive force-pushed the modernization/updating-c++-pass-1 branch 3 times, most recently from c4765d9 to b04db29 Compare February 5, 2023 22:38
@sierrafoxtrot
Copy link
Owner

Hey @SeanAlling-DojoFive , I'm getting through this a bit each day. Confident that I'll have it wrapped on the weekend.

Copy link
Owner

@sierrafoxtrot sierrafoxtrot left a comment

Choose a reason for hiding this comment

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

Thank you Sean for this extensive contribution. My apologies for the time taken to respond but I wanted to do it justice. A couple of minor comments.

srecord/input/file.h Outdated Show resolved Hide resolved
srecord/input/file/logisim.h Show resolved Hide resolved
srecord/memory/walker/alignment.h Outdated Show resolved Hide resolved
Four clang-tidy riles used

1. cppcoreguidelines-pro-type-member-init
1. modernize-use-default-member-init
1. readability-redundant-member-init
1. readability-redundant-string-init

[modernization] updated existing constructors

[modernization] Added missing delete statements

[modernization] Resolved megalinter errors

[modernization] Updated multiple constructors Pt.1

[modernization] Updated multiple constructors Pt.2
@SeanAlling-DojoFive SeanAlling-DojoFive force-pushed the modernization/updating-c++-pass-1 branch from b04db29 to cfc2f47 Compare February 13, 2023 06:57
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.

3 participants