[llvm-bugs] [Bug 24673] New: Lack of option to put space before brace at constructor calling ("Uniform" initialization syntax)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 2 01:56:41 PDT 2015


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

            Bug ID: 24673
           Summary: Lack of option to put space before brace at
                    constructor calling ("Uniform" initialization syntax)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: predelnik at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

If one uses an option to always put spaces before parentheses, constructor
calls would have space before their parentheses obviously e.g.:
Widget widget ();
f (Widget (1997));

Then one probably expects to have similar formatting with "Uniform"
initialization syntax, but currently there's no option to get something
different than:
Widget widget{};
f (Widget{1997});

I think it would be nice to have an option to put a space before braces in such
cases.

-- 
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/20150902/255b9e9a/attachment.html>


More information about the llvm-bugs mailing list