================ @@ -4249,11 +4253,40 @@ FormatToken *TokenAnnotator::calculateInitializerColumnList( ++Depth; else if (CurrentToken->is(tok::r_brace)) --Depth; + + // Ensure each outer array element starts on its own line + if (Depth == 1 && CurrentToken->is(tok::comma)) { + auto *NextNonComment = CurrentToken->getNextNonComment(); + if (NextNonComment) ---------------- HazardyKnusperkeks wrote:
```suggestion if (auto *NextNonComment = CurrentToken->getNextNonComment()) ``` 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