[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-04 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks closed https://github.com/llvm/llvm-project/pull/68154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-04 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/68154 From ca558ee22c4bc4749e3b7406364f3bbf8fb93ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Tue, 3 Oct 2023 17:32:47 +0200 Subject: [PATCH] [clang-format][NFC] AlignTokenS

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. We should also update [this line](https://github.com/llvm/llvm-project/pull/68154/files#diff-13a957866eda585a177e1d10139b157956e9d82c40d2275b500c2b1bcb2ad8c0R452) to: ``` assert(Shift > 0 || Changes[i].NewlinesBefore > 0 || ``` https://

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes When Shift is 0 there does nothing happen in the remainder of the loop, express that directly. --- Full diff: https://github.com/llvm/llvm-project/pull/68154.diff 1 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-03 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks created https://github.com/llvm/llvm-project/pull/68154 When Shift is 0 there does nothing happen in the remainder of the loop, express that directly. From cd77a3cce4497c12c1d65d2f41d71b4ef3b5c079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C