-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations #152698
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
Merged
cor3ntin
merged 16 commits into
llvm:main
from
tinnamchoi:tinnamchoi-24265-scoped-enum-diagnostics
Aug 23, 2025
Merged
[Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations #152698
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
214a954
[Clang] Add diagnostic when scoped enumeration requires an explicit c…
tinnamchoi ab9d87b
[Clang] Update existing tests to reflect new diagnostics for scoped e…
tinnamchoi 469f559
[Clang] Add tests for new diagnostics for scoped enums
tinnamchoi 79d4d08
[Clang] Remove unnecessary if block in scoped enum test
tinnamchoi e22ad8b
[Clang] Add tests for `fix-it`s for scoped enums
tinnamchoi 76baf51
[Clang]: Refactor Sema::CheckMultiplyDivideOperands for clarity
tinnamchoi 824084e
[Clang] Suggest using `std::to_underlying` for invalid scoped enum op…
tinnamchoi 6193ea0
[Clang] Add tests for diagnostics for scoped enums in C++23
tinnamchoi 45c8c06
[Clang] Update ReleaseNotes.rst
tinnamchoi 1c32a63
[Clang] Fix variable capitalization
tinnamchoi 771f9ac
[Clang] Remove >=C++23 version of scoped enum diagnostic
tinnamchoi d3388ff
[Clang] Don't rely on `InvalidOperands` always returning `QualType()`
tinnamchoi 34485af
[Clang] Reorder checks in diagnoseScopedEnums for efficiency
tinnamchoi e13b3a7
[Clang] Move FixIt tests for scoped enums
tinnamchoi fbcee77
Merge branch 'main' of github.com:llvm/llvm-project into tinnamchoi-2…
tinnamchoi 3a6e09b
[Clang] Fix error caused by upstream changes in 91cdd35008e9ab32dffb7…
tinnamchoi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.