Skip to content

refactor: Tagged enum names#7128

Open
Nerixyz wants to merge 2 commits into
Chatterino:masterfrom
Nerixyz:refactor/tagged-enum
Open

refactor: Tagged enum names#7128
Nerixyz wants to merge 2 commits into
Chatterino:masterfrom
Nerixyz:refactor/tagged-enum

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Tl;dr: Less duplication when adding tags.

To fix #7127, I want to add another tag. I noticed that this would require (essentially) duplicating the enumDisplayName{,String} functions. This puts the functions into a class, so we can reuse them with different tags.

Using the functions for a tag is slightly different now, as you need to name the tag.

AppleClang 15.0 crashed when compiling the QMagicEnum test, so I bumped it to 17.0.

@Nerixyz
Nerixyz marked this pull request as ready for review July 22, 2026 13:02
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.

Plugins: Broken ChannelType enum

1 participant