https://bugs.llvm.org/show_bug.cgi?id=39803
Bug ID: 39803
Summary: When breaking a comment and placing the second part on
a new line, libformat should leave one whitespace
between the text and the right-most star in C-style
comments
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: eh...@mozilla.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
In C-style comments, some code can have the following pattern:
/*
*
**/
When breaking comments across lines like this, libformat seems to put the next
line at the position of the left-most star + 2 to the right, which doesn't
leave enough whitespace between the text and the right-most star.
See the following test case which demonstrates the problem:
$ cat test.cpp
/*
* Hello world, this is a comment that is longer than eighty characters
looooong!!!!
**/
$ clang-format -style=Google test.cpp
/*
* Hello world, this is a comment that is longer than eighty characters
*looooong!!!!
**/
(Bugzilla may wrap lines, but in the test case, all of the text is on the same
line.)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs