[llvm-bugs] [Bug 41407] New: Constructor initializer list indented incorrectly

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 5 20:33:49 PDT 2019


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

            Bug ID: 41407
           Summary: Constructor initializer list indented incorrectly
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: owenpiano at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

The .clang-format file:
BreakConstructorInitializers: AfterColon
ColumnLimit: 0
ConstructorInitializerIndentWidth: 0

C++ code to be formatted:
Foo::Foo() :
foo(0),
bar(1) {
}

Incorrectly formatted to:
Foo::Foo() :
foo(0),
    bar(1) {
}

-- 
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/20190406/c783b510/attachment.html>


More information about the llvm-bugs mailing list