You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… empty block comment.
Fixesllvm/llvm-project#53441.
Expected code:
```
/**/ //
int a; //
```
was before misformatted to:
```
/**/ //
int a; //
```
Because the "remaining length" (after the starting `/*`) of an empty block comment `/**/` was computed to be 0 instead of 2.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D118475
That's a minor issue.
With LLVM style, alignment of comments is off if there's an empty block comment at the beginning of the line.
Minimal repro:
Expected:
Mind, formatting is fine if there's at least a single character in the block comment.
The text was updated successfully, but these errors were encountered: