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

Make LLVMToSPIRVBase comply with Rule of Five. #2860

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

maarquitos14
Copy link
Contributor

@maarquitos14 maarquitos14 commented Nov 14, 2024

LLVMToSPIRVBase had a custom destructor, but no copy constructor, no move constructor, no move assignment operator, and no copy assignment operator, so it was not complying with the Rule of Five. Explicitly add them as deleted to comply.

@svenvh
Copy link
Member

svenvh commented Nov 14, 2024

Thanks! Would you mind extending this patch to also comply with the rule of five, by including the move constructor & move assignment operator?

@maarquitos14
Copy link
Contributor Author

Thanks! Would you mind extending this patch to also comply with the rule of five, by including the move constructor & move assignment operator?

Of course, done now :)

@MrSidims
Copy link
Contributor

@maarquitos14 should we also rename the PR with the description? They are usually used as commit name and message appropriately when PR is merged with 'squash and merge' strategy.

@maarquitos14 maarquitos14 changed the title Make LLVMToSPIRVBase comply with Rule of Three. Make LLVMToSPIRVBase comply with Rule of Five. Nov 14, 2024
@maarquitos14
Copy link
Contributor Author

@maarquitos14 should we also rename the PR with the description? They are usually used as commit name and message appropriately when PR is merged with 'squash and merge' strategy.

Good catch, thanks. Done.

@MrSidims MrSidims merged commit 93fb018 into KhronosGroup:main Nov 14, 2024
9 checks passed
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