[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 18 23:42:37 PDT 2025


================
@@ -656,7 +656,6 @@ void WhitespaceManager::alignConsecutiveMacros() {
 
   auto AlignMacrosMatches = [](const Change &C) {
     const FormatToken *Current = C.Tok;
----------------
owenca wrote:

We should `assert(Current)` here.

https://github.com/llvm/llvm-project/pull/164122


More information about the cfe-commits mailing list