Issue |
131145
|
Summary |
Clang-format failed to format code blocks in comments when it is too long
|
Labels |
clang-format
|
Assignees |
|
Reporter |
Evian-Zhang
|
Example:
Original code:
```c
/**
* @code
* char *a_very_very_very_long = "which makes it need to enter another line to fix";
* if (foo > 1) {
* return;
* }
* @endcode
*/
int foo = 0;
```
After formatting:
```c
/**
* @code
* char *a_very_very_very_long = "which makes it need to enter another line to
* fix"; if (foo > 1) { return;
* }
* @endcode
*/
int foo = 0;
```
The clang-format version is `Ubuntu clang-format version 19.1.7 (++20250114103320+cd708029e0b2-1~exp1~20250114103432.75)`.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs