Skip to content

Conversation

@IsaacMarovitz
Copy link
Contributor

No description provided.

Signed-off-by: Isaac Marovitz <[email protected]>

uint32_t absoluteSwitch[] =
{
uint32_t absoluteSwitch[] = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oversight in clang-format config llvm/llvm-project#90837

Copy link

@halotroop2288 halotroop2288 Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set BreakBeforeBraces to Allman, to match the original styling. It keeps all braces on the next line, even array initializers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already set, it doesn't affect array initialisers properly.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is an open issue with clang-format. There's no way to customize the line breaking behavior with array initializers. llvm/llvm-project#90837

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see you already linked the Issue.

Signed-off-by: Isaac Marovitz <[email protected]>
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.

3 participants