[llvm-bugs] [Bug 47907] New: clang-format misformats struct pointer member refs after objc method calls
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 19 14:26:11 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47907
Bug ID: 47907
Summary: clang-format misformats struct pointer member refs
after objc method calls
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: ellyjones at chromium.org
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Created attachment 24078
--> https://bugs.llvm.org/attachment.cgi?id=24078&action=edit
repro case
When formatting the following code snippet:
int main() {
foo([obj method], a->b);
}
clang-format incorrectly inserts spaces around the arrow:
$ cat test.mm
int main() {
foo([obj method], a->b);
}
$ clang-format --version
clang-format version 11.0.0 (https://github.com/llvm/llvm-project
eb85e90350e93a64279139e7eca9ca40c8fbf5eb)
$ clang-format test.mm
int main() {
foo([obj method], a -> b);
}
The test file is attached as well.
--
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/20201019/fd9b3626/attachment.html>
More information about the llvm-bugs
mailing list