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: unassignedclangb...@nondot.org
          Reporter: bhamilto...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to