================
@@ -1637,6 +1637,8 @@ static auto computeNewlines(const AnnotatedLine &Line,
const SmallVectorImpl<AnnotatedLine *> &Lines,
const FormatStyle &Style) {
const auto &RootToken = *Line.First;
+ if (RootToken.Finalized || isClangFormatOn(RootToken.TokenText))
----------------
HazardyKnusperkeks wrote:
Yes, that's why I added
> And as a drive by don't recalculate the new line count for something we won't
> touch anyway.
To the commit message.
https://github.com/llvm/llvm-project/pull/218022
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits