Bug ID: 36625
           Summary: clang-format rules should allow space before braced
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter

WebKit C++ style for object initialization* is as follows:

Foo foo { bar };

Yet using `clang-format -style=webkit` changes this to:

Foo foo{ bar };

In fact, there does not seem to be any combination of rules that will ensure a
space before a braced list in this fashion.

My colleagues and I are interested in making use of clang-format for WebKit
development, so resolving this discrepancy would be quite helpful!


* This isn't spelled out in the style guide but here's an arbitrary example:

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to