[clang-format] Don't move comments if AlignTrailingComments: Leave
For comments that start after a new line, currently, the comments are being indented. This happens because the OriginalWhitespaceRange considers newlines on the range. Therefore, when AlignTrailingComments: Kind: Leave, deduct the number of newlines before the token to calculate the number of spaces for trailing comments. Fixes #59203. Differential Revision: https://reviews.llvm.org/D139029
Loading
Please sign in to comment