[llvm-bugs] [Bug 25972] New: New style options: 'BreakInEmptyBraces' and 'SpaceInEmptyBraces'

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 30 07:45:47 PST 2015


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

            Bug ID: 25972
           Summary: New style options: 'BreakInEmptyBraces' and
                    'SpaceInEmptyBraces'
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at Alexander.Shukaev.name
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

I guess the title tells it all, but I'll reiterate.  It should be possible to
configure whether to put break/space inside empty braces.  For instance, it is
quite common to have empty/unimplemented structures, methods, constructors,
etc., and 'BreakInEmptyBraces' being 'false' would save precious screen lines. 
'SpaceInEmptyBraces' seems reasonable for consistency with
'SpaceInEmptyParentheses'.

-- 
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/20151230/d27c8a6c/attachment.html>


More information about the llvm-bugs mailing list