[llvm-bugs] [Bug 25345] New: Empty line is not preserved after inline member function definition

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 29 08:44:24 PDT 2015


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

            Bug ID: 25345
           Summary: Empty line is not preserved after inline member
                    function definition
           Product: clang
           Version: 3.7
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: skomik at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

There is a bug in 3.7.0, which doesn't reproduce on 3.6.2. The empty line is
not preserved after inline member function definition when using the following
settings. Changing 'KeepEmptyLinesAtTheStartOfBlocks' to 'true' fixes the
issue, but it should not affect the following example.

Settings:

---
BasedOnStyle:                                   Webkit
AllowShortFunctionsOnASingleLine:               Inline
KeepEmptyLinesAtTheStartOfBlocks:               false
...


Expected formatting:

class Test {
    void foo1() {}

    void foo2();

    void foo3();
}

Observed formatting:

class Test {
    void foo1() {}
    void foo2();

    void foo3();
}

-- 
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/20151029/36eb35bb/attachment.html>


More information about the llvm-bugs mailing list