Skip to content

Procedure brace style for Stroustrup and K_And_R is the wrong way around #1654

Description

@redactedscribe

"brace_style": "Stroustrup" keeps opening brace of a procedure on the same line.

"brace_style": "K_And_R" moves opening brace of a procedure to its own line below.

That behaviour should be inverted:

Style if Procedure
_1TBS { same line { same line
Allman { next line { next line
Stroustrup { same line { next line
K_And_R { same line { same line

It looks like the rest of the behaviour of the two styles is fine, just the behaviour of a procedure's opening curly brace is the issue.

Haven't looked into the others.

ols 2026-08

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions