================
@@ -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))
----------------
owenca wrote:
```suggestion
if (isClangFormatOn(RootToken.TokenText))
```
would suffice?
https://github.com/llvm/llvm-project/pull/218022
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits