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

chore: make FlagsEnum constexpr #5510

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jul 14, 2024

... and noexcept and fix hasAll and use concepts and add tests and remove std::initializer_list.

All tests test an unscoped (enum) and scoped (enum class) enum, hence the template. Since this is used in many files, I've added <concepts> to the PCH.

Clangd was complaining about Test.hpp, so I added an export to the gtest headers.

No other code was changed.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

There were too many comments to post at once. Showing the first 25 out of 27. Check the log or trigger a new build to see more.

tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
tests/src/FlagsEnum.cpp Outdated Show resolved Hide resolved
@pajlada pajlada merged commit deb4401 into Chatterino:master Jul 16, 2024
17 checks passed
@Nerixyz Nerixyz deleted the chore/flags-constexpr branch July 16, 2024 14:36
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.

2 participants