https://bugs.llvm.org/show_bug.cgi?id=48539
Bug ID: 48539
Summary: ReflowComments breaks Qt translation comments
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: jva...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Qt has a concept of translation comments (see
https://doc.qt.io/qt-5/i18n-source-translation.html#translator-comments)
This gives extra meaning to //:, //=, //~.
This is a bit similar to doxygen using ///, ///<, //! or //!<
When reflown and a part of the comments are added on a new line, it should
repeat these extra characters as part of the comment token.
The reproduction:
.clang-format
=============
ColumnLimit: 40
ReflowComments: true
example.cpp
===========
//: This is a test. AAAAAAAAAA AAAAAAAAA AAAAAAAAAAAAAAA
QString example = tr("Example");
result.cpp
==========
//: This is a test. AAAAAAAAAA AAAAAAAAA
//AAAAAAAAAAAAAAA
QString example = tr("Example");
expected.cpp
============
//: This is a test. AAAAAAAAAA AAAAAAAAA
//: AAAAAAAAAAAAAAA
QString example = tr("Example");
--
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