================ @@ -2371,7 +2371,8 @@ bool UnwrappedLineParser::tryToParseLambdaIntroducer() { if ((Previous && ((Previous->Tok.getIdentifierInfo() && !Previous->isOneOf(tok::kw_return, tok::kw_co_await, tok::kw_co_yield, tok::kw_co_return)) || - Previous->closesScope())) || + (Previous->closesScope() && + !Previous->endsSequence(tok::r_paren, tok::greater)))) || ---------------- owenca wrote:
I've added the handling of casting to a function pointer, the only other case I can think of. https://github.com/llvm/llvm-project/pull/136099 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits