[llvm-bugs] [Bug 27263] New: Indention Style: Horstmann style

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 7 04:14:20 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27263

            Bug ID: 27263
           Summary: Indention Style: Horstmann style
           Product: clang
           Version: unspecified
          Hardware: PC
               URL: https://en.wikipedia.org/wiki/Indent_style#Horstmann_s
                    tyle
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: winter-llvm at bfw-online.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

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:
https://en.wikipedia.org/wiki/Indent_style#Horstmann_style
https://community.oracle.com/blogs/cayhorstmann/2010/06/28/horstmann-brace-style

Artistic style implements it as well:
http://manpages.ubuntu.com/manpages/natty/man1/astyle.1.html

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160407/18275075/attachment-0001.html>


More information about the llvm-bugs mailing list