================ @@ -1596,7 +1596,7 @@ static auto computeNewlines(const AnnotatedLine &Line, if (Line.startsWith(TT_NamespaceRBrace)) { if (Style.WrapNamespaceBodyWithEmptyLines == FormatStyle::WNBWELS_Never) Newlines = 1; - else if (!PreviousLine->startsWith(TT_NamespaceRBrace)) + else if (PreviousLine && !PreviousLine->startsWith(TT_NamespaceRBrace)) ---------------- schittir wrote:
Thank you @HazardyKnusperkeks and @owenca - I've decided to revert this at present. https://github.com/llvm/llvm-project/pull/126872 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits