-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
[clang-format] New AfterEnum brace wrapping changes have cause C# behaviour to change #50982
Comments
This doesn't apply cleanly to the release branch, can you provide a patch or a git branch with the patch applied. |
We will need an updated patch by Monday Sep. 13 or else this fix will risk missing the release. |
@Tom (as of Oct 12th post 13.0.0 release) if I want to get this into 13.0.1 which branch should I be committing to? I assume release/13.x, is that correct? $ git branch -a
|
Can you attach a patch to this bug? I'll do the backporting. |
Patch against 13.0.0 branch This should merge cleanly. This is a full context diff (as I would use for a review) if you need one with a little less context let me know. |
Smaller patch with -U4 for completeness |
Merged: a797306 |
mentioned in issue #51489 |
Extended Description
in 13.0 and 14.0 AfterEnum brace wrapping is now different in how Enums are modified (when they have an access modifier)
Enumerators with access modifiers don't follow the BraceWrapping rules
Language: CSharp
AllowShortBlocksOnASingleLine: false
AllowShortEnumsOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
enum A
{
A,
B
}
internal enum A {
A,
B
}
public enum A {
A,
B
}
The text was updated successfully, but these errors were encountered: