================
@@ -4589,9 +4589,12 @@ bool TokenAnnotator::spaceRequiredBetween(const
AnnotatedLine &Line,
if (!BeforeLeft)
return false;
if (BeforeLeft->is(tok::coloncolon)) {
- const auto *Prev = BeforeLeft->Previous;
- return Left.is(tok::star) && Prev &&
- !Prev->endsSequence(tok::identifier, TT_FunctionTypeLParen);
+ if (Left.isNot(tok::star))
+ return false;
+ if (!Right.startsSequence(tok::identifier, tok::r_paren))
+ return true;
+ const auto *Tok = Right.Next->MatchingParen;
----------------
owenca wrote:
No, because `startsSequence()` returned `true`. I'll add an assertion though.
https://github.com/llvm/llvm-project/pull/105043
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits