[llvm-bugs] [Bug 47920] New: Unnecessary break when line is at line length and ends with NS_SWIFT_NAME()

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 20 12:04:40 PDT 2020


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

            Bug ID: 47920
           Summary: Unnecessary break when line is at line length and ends
                    with NS_SWIFT_NAME()
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bhamiltoncx at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

https://reviews.llvm.org/D89425 introduces a bug for lines that are at the line
length limit and end with `NS_SWIFT_NAME()` or `CF_SWIFT_NAME()`.

For example, with `NS_SWIFT_NAME(foo(bar:))`, before the diff, the colon after
`foo(bar:` had `L=97`:

```
 M=0 C=0 T=ObjCMethodExpr S=0 F=0 B=0 BK=0 P=63 Name=colon L=97 PPK=2
FakeLParens= FakeRParens=1 II=0x0 Text=':'
```

and after, it has `L=98`:

 M=0 C=0 T=Unknown S=1 F=1 B=0 BK=0 P=43 Name=colon L=98 PPK=2 FakeLParens=
FakeRParens=0 II=0x0 Text=':'

`L` is `Line.Level`. I don't understand why it would increase by 1 here.

-- 
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/20201020/bdb2967c/attachment.html>


More information about the llvm-bugs mailing list