[Libreoffice-bugs] [Bug 123936] Find files to be formatted with clang-format
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 17 13:25:47 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=123936
Stephan Bergmann <sbergman at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sbergman at redhat.com
--- Comment #8 from Stephan Bergmann <sbergman at redhat.com> ---
But note that unconditional application of clang-format will, in general, break
the meaning of comments. Consider code like
LooooooongType1 looooooongVarName1;
// lengthy comment about some detail
LooooooongType2 looooooongVarName2;
where the comment pertains to the preceding line, but needs to go on a new line
due to line length limitations, and is indented to make that clear. It will
get reformatted as
LooooooongType1 looooooongVarName1;
// lengthy comment about some detail
LooooooongType2 looooooongVarName2;
making it less obvious whether the comment pertains to the preceding or to the
following line.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191217/31d3c9d5/attachment.htm>
More information about the Libreoffice-bugs
mailing list