<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/68251>68251</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] feature request: BracesOnLastLineOfBlock
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          cwhii
      </td>
    </tr>
</table>

<pre>
    I have found that [Artistic Style 3.4.8](https://astyle.sourceforge.net/) A Free, Fast, and Small Automatic Formatter
for C, C++, C++/CLI, Objective C, C#, and Java Source Code, supports a format that resembles Python:

`--style=lisp / --style=python / -A12`

This style has become common given the popularity of Python. So w/o debating its merits, it seems a simple feature addition of:

`BracesOnLastLineOfBlock`

would provide the familiar layout for Python developers moving to C++.

![ss_20231004_130346-astyle-python](https://github.com/llvm/llvm-project/assets/1233816/04c9d764-3125-491f-95c2-4185b49a5505)

The feature name was suggested by [Marcus Müller](https://unix.stackexchange.com/users/106650/marcus-m%c3%bcller) in a comment to a [unix.stackexchange](https://unix.stackexchange.com/questions/757869/how-are-package-maintainers-poked-to-update-their-package) question.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVMFu2zgQ_Rr6MpAgUaJsHXywHQjookUWyN6LETmSuKFELUk59d8vyMRNs-0eChimQA7nvTfzOOi9HheiIxNnJh52uIXJuqN8mbTe9Vbdjp9gwivBYLdFQZgwABPnkwvaBy3hKdwMQZXX-YGJB8YPUwirZ9WJ8Y7xDn08z73dnKTBupHyhUI6a-EEnSNi_AIxLq64KHia0Rg4bcHOGBE662YMgRwrHlhxGqyDS4y9MH5Ovx8-u8vnT3Hjsf-bZNBX-h5a3dP_gVeEp8QHLlYleL-tq3XBA8KQ0F51OvI094Y8_HkLk12iqsTh7b8psizpY9WD0X4Fxjt431rTpdfNU8lZU_x4-69Je0ihMKGHnqSdCaSdZ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