================ @@ -278,6 +278,33 @@ void WhitespaceManager::calculateLineBreakInformation() { } } +// Sets the spaces in front of a Change, and updates the start/end columns of +// subsequent tokens so that trailing comments and escaped newlines can be +// aligned properly +static void +SetChangeSpaces(unsigned Start, unsigned Spaces, ---------------- bdunkin wrote:
Updating `Spaces`, without also modifying `PreviousEndOfTokenColumn` for the next token means the spaces are not considered when aligning trailing comments or preprocessor line breaks. I changed all places in this file that modified `Spaces` directly to use this function instead. https://github.com/llvm/llvm-project/pull/143781 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits