Conversation
when parens are encountered in enum member value.
There was a problem hiding this comment.
Pull Request Overview
This PR addresses a false positive error ("Enum member must have initializer.") that occurs when enum member initializers are wrapped in parentheses.
- Updated the enum member check to unwrap parentheses before matching against a numeric literal.
- Ensures that expressions wrapped with extra parentheses are correctly recognized as valid initializers.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Instrumentation Performance ReportMerging #11265 will degrade performances by 4.98%Comparing Summary
Benchmarks breakdown
|
Merge activity
|

when parens are encountered in enum member value.