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

clang-tidy: Apply modernize-use-using everywhere #6453

Merged
merged 17 commits into from
Jul 7, 2022

Conversation

sakertooth
Copy link
Contributor

@sakertooth sakertooth commented Jun 26, 2022

This clang-tidy check converts typedef declarations into their using declaration equivalent. This PR in particular also updates C-style typedef arrays with std::array. Do note that it may seem possible to replace some typedef function pointers with std::function at first. However, this created problems with the surrounding codebase, so those declarations are left as function pointers.

@sakertooth sakertooth marked this pull request as draft June 26, 2022 18:48
@sakertooth
Copy link
Contributor Author

Missed some. Going hunting.

@LmmsBot
Copy link

LmmsBot commented Jun 27, 2022

🤖 Hey, I'm @LmmsBot from github.com/lmms/bot and I made downloads for this pull request, click me to make them magically appear! 🎩

Linux

Windows

macOS

🤖
{"platform_name_to_artifacts": {"Linux": [{"artifact": {"title": {"title": "(AppImage)", "platform_name": "Linux"}, "link": {"link": "https://output.circle-artifacts.com/output/job/8b6dd84c-8bbc-4bfe-8e4c-ce5512e308be/artifacts/0/lmms-1.3.0-alpha.1.224+g0012adf7b-linux-x86_64.AppImage"}}, "build_link": "https://circleci.com/gh/sakertooth/lmms/354?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}], "Windows": [{"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://output.circle-artifacts.com/output/job/c106e084-dbbd-4143-b193-842c0d31771c/artifacts/0/lmms-1.3.0-alpha.1.224+g0012adf7b-mingw-win32.exe"}}, "build_link": "https://circleci.com/gh/sakertooth/lmms/355?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://output.circle-artifacts.com/output/job/656786f7-4487-4f21-a484-17ab3580fae5/artifacts/0/lmms-1.3.0-alpha.1.224+g0012adf7b-mingw-win64.exe"}}, "build_link": "https://circleci.com/gh/sakertooth/lmms/353?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}, {"artifact": {"title": {"title": "32-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/2619dnpk8w1tmdki/artifacts/build/lmms-1.3.0-alpha-msvc2017-win32.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/44099369"}, {"artifact": {"title": {"title": "64-bit", "platform_name": "Windows"}, "link": {"link": "https://ci.appveyor.com/api/buildjobs/i0l9icgi1iq4hbg1/artifacts/build/lmms-1.3.0-alpha-msvc2017-win64.exe"}}, "build_link": "https://ci.appveyor.com/project/Lukas-W/lmms/builds/44099369"}], "macOS": [{"artifact": {"title": {"title": "", "platform_name": "macOS"}, "link": {"link": "https://output.circle-artifacts.com/output/job/1552d590-622d-4e5c-a9e5-fec8cf6f74ea/artifacts/0/lmms-1.3.0-alpha.1.224+g0012adf7b-mac10.14.dmg"}}, "build_link": "https://circleci.com/gh/sakertooth/lmms/351?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link"}]}, "commit_sha": "0012adf7b5a74ae78f8f0583b9e99a35ef014942"}

@sakertooth sakertooth marked this pull request as ready for review June 27, 2022 07:34
@JohannesLorenz JohannesLorenz self-requested a review June 28, 2022 18:52
Copy link
Contributor

@JohannesLorenz JohannesLorenz left a comment

Choose a reason for hiding this comment

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

Only a few minor things about struct and enum keywords.

…aration.

+ Change alias declaration in LadspaEffect.h to using PortDescription = struct port_desc_t.
+ Replace new PortDescription with new port_desc_t in LadspaEffect.cpp.
Copy link
Contributor

@JohannesLorenz JohannesLorenz left a comment

Choose a reason for hiding this comment

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

I think the PR is OK now 👍

@JohannesLorenz JohannesLorenz merged commit b451e40 into LMMS:master Jul 7, 2022
@sakertooth sakertooth deleted the modernize-use-using branch December 8, 2022 05:25
sakertooth added a commit to sakertooth/lmms that referenced this pull request May 30, 2023
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.

4 participants