<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Indention Style: Horstmann style"
   href="https://llvm.org/bugs/show_bug.cgi?id=27263">27263</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Indention Style: Horstmann style
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>URL</th>
          <td>https://en.wikipedia.org/wiki/Indent_style#Horstmann_style
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Formatter
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>winter-llvm@bfw-online.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

the indention style is a mere adaption of Allman albeit "saving" space since it
folds continuing lines of a new block content in the very line of the opening
brace:
<a href="https://en.wikipedia.org/wiki/Indent_style#Horstmann_style">https://en.wikipedia.org/wiki/Indent_style#Horstmann_style</a>
<a href="https://community.oracle.com/blogs/cayhorstmann/2010/06/28/horstmann-brace-style">https://community.oracle.com/blogs/cayhorstmann/2010/06/28/horstmann-brace-style</a>

Artistic style implements it as well:
<a href="http://manpages.ubuntu.com/manpages/natty/man1/astyle.1.html">http://manpages.ubuntu.com/manpages/natty/man1/astyle.1.html</a>

I have not yet looked at the soure code of clang-format so I cannot say how
complicated its addition would be nor have a looked around for a precise style
guide where someone uses/describes this particular style.
Maybe by having this bug report open this beloved indention style could gain
some interest ;)

Regards,
Leon</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>