[clang] [Clang] fix confusing diagnostics for lambdas with init-captures inside braced initializers (PR #166180)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 5 08:11:54 PST 2025
================
@@ -772,9 +772,10 @@ bool Parser::ParseLambdaIntroducer(LambdaIntroducer &Intro,
// Produce a diagnostic if we're not tentatively parsing; otherwise track
// that our parse has failed.
- auto Invalid = [&](llvm::function_ref<void()> Action) {
+ auto Result = [&](llvm::function_ref<void()> Action,
+ LambdaIntroducerTentativeParse State) {
----------------
a-tarasyuk wrote:
@cor3ntin thanks for the feedback. Updated to use the default value
https://github.com/llvm/llvm-project/pull/166180
More information about the cfe-commits
mailing list