Skip to content

Couldn't remove modules without translation units#1861

Merged
tritao merged 1 commit intomono:mainfrom
HenrikAkseliValve:main
Aug 20, 2024
Merged

Couldn't remove modules without translation units#1861
tritao merged 1 commit intomono:mainfrom
HenrikAkseliValve:main

Conversation

@HenrikAkseliValve
Copy link
Copy Markdown
Contributor

I do not know I'm first to encounter this, however, loop that removes modules without translation units, could not have worked.

In C# Enumerator prohibits editing the collection so you cannot remove modules from options.Module while iterating options.Module.
CppSharp_Enumeration_bug00
CppSharp_Enumeration_bug01

Chose RemoveAll for its simplicity. Not necessary optimal solution although it might be.

I do not know I'm first to encounter this, however, loop that removes module without translation units, could not have worked.

In C# Enumerator prohibs editing the collection so you cannot remove modules from `options.Module` while iterating `options.Mobule`.

Chose `RemoveAll` for its simplicity. Not necessary optimal solution although it might be.
@HenrikAkseliValve
Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

@tritao tritao merged commit 345de8b into mono:main Aug 20, 2024
@HenrikAkseliValve
Copy link
Copy Markdown
Contributor Author

Thank you. Fastest merge request I have ever requested. 👏

@tritao
Copy link
Copy Markdown
Collaborator

tritao commented Aug 20, 2024

Thank you. Fastest merge request I have ever requested. 👏

Thanks for the contribution too.

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