You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm just not seeing the option that prevents Clang-Format from putting the parameters on a different line for a record class, but I'm pretty sure it's a bug.
As an additional piece of information, it seems when SeparateDefinitionBlocks is set to Always, it causes the above code snippet, if it has a body, to no include an empty line between the class declaration and the parameters, looking as such:
StrangeRanger
changed the title
[clang-format] [Bug] Places parameters of record class on new line
[clang-format] Places parameters of record class on new line
Apr 5, 2023
StrangeRanger
changed the title
[clang-format] Places parameters of record class on new line
[clang-format] [C#] Places parameters of record class on new line
Apr 5, 2023
StrangeRanger
changed the title
[clang-format] [C#] Places parameters of record class on new line
Places parameters of record class on new line
Apr 5, 2023
I think this is a bug, but I'm not 100% sure. When using Clang-Format using the Microsoft style for CSharp, it turns the following
into
Maybe I'm just not seeing the option that prevents Clang-Format from putting the parameters on a different line for a record class, but I'm pretty sure it's a bug.
Update 1
As an additional piece of information, it seems when
SeparateDefinitionBlocks
is set toAlways
, it causes the above code snippet, if it has a body, to no include an empty line between the class declaration and the parameters, looking as such:Update 2
It does the exact same thing with the following:
to
If
SeparateDefinitionBlocks
is set toAlways
, it looks like the following:The text was updated successfully, but these errors were encountered: