Skip to content

chore: make FlagsEnum constexpr - #5510

Merged
pajlada merged 3 commits into
Chatterino:masterfrom
Nerixyz:chore/flags-constexpr
Jul 16, 2024
Merged

pajlada merged 3 commits into
Chatterino:masterfrom
Nerixyz:chore/flags-constexpr

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Jul 14, 2024

Copy link
Copy Markdown
Contributor

... 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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread tests/src/FlagsEnum.cpp Outdated
Comment thread src/common/FlagsEnum.hpp
@pajlada
pajlada merged commit deb4401 into Chatterino:master Jul 16, 2024
@Nerixyz
Nerixyz deleted the chore/flags-constexpr branch July 16, 2024 14:36
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
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