================
@@ -893,7 +893,7 @@ class LineJoiner {
         Line.First->isOneOf(tok::kw_try, tok::kw___try, tok::kw_catch,
                             tok::kw___finally, tok::r_brace,
                             Keywords.kw___except) ||
-        Line.startsWithExportBlock()) {
+        Line.First->is(TT_ExportLBrace) || Line.Last->is(TT_ExportLBrace)) {
----------------
HazardyKnusperkeks wrote:

> Also I want to add that The `First`-without-`Last` case is structurally 
> unreachable: 

And that's why we should drop `Line.First->is(TT_ExportLBrace)` from 
`Line.First->is(TT_ExportLBrace) || Line.Last->is(TT_ExportLBrace)` right?

https://github.com/llvm/llvm-project/pull/216892
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to