This revision was automatically updated to reflect the committed changes. Closed by commit rGd5b8ecbd33c9: [pseudo] empty parameter-declaration should be allowed in lambda declarator. (authored by hokein).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121089/new/ https://reviews.llvm.org/D121089 Files: clang/lib/Tooling/Syntax/Pseudo/cxx.bnf Index: clang/lib/Tooling/Syntax/Pseudo/cxx.bnf =================================================================== --- clang/lib/Tooling/Syntax/Pseudo/cxx.bnf +++ clang/lib/Tooling/Syntax/Pseudo/cxx.bnf @@ -69,7 +69,7 @@ lambda-expression := lambda-introducer lambda-declarator_opt compound-statement lambda-expression := lambda-introducer < template-parameter-list > requires-clause_opt lambda-declarator_opt compound-statement lambda-introducer := [ lambda-capture_opt ] -lambda-declarator := ( parameter-declaration-clause ) decl-specifier-seq_opt noexcept-specifier_opt trailing-return-type_opt requires-clause_opt +lambda-declarator := ( parameter-declaration-clause_opt ) decl-specifier-seq_opt noexcept-specifier_opt trailing-return-type_opt requires-clause_opt lambda-capture := capture-default lambda-capture := capture-list lambda-capture := capture-default , capture-list
Index: clang/lib/Tooling/Syntax/Pseudo/cxx.bnf =================================================================== --- clang/lib/Tooling/Syntax/Pseudo/cxx.bnf +++ clang/lib/Tooling/Syntax/Pseudo/cxx.bnf @@ -69,7 +69,7 @@ lambda-expression := lambda-introducer lambda-declarator_opt compound-statement lambda-expression := lambda-introducer < template-parameter-list > requires-clause_opt lambda-declarator_opt compound-statement lambda-introducer := [ lambda-capture_opt ] -lambda-declarator := ( parameter-declaration-clause ) decl-specifier-seq_opt noexcept-specifier_opt trailing-return-type_opt requires-clause_opt +lambda-declarator := ( parameter-declaration-clause_opt ) decl-specifier-seq_opt noexcept-specifier_opt trailing-return-type_opt requires-clause_opt lambda-capture := capture-default lambda-capture := capture-list lambda-capture := capture-default , capture-list
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits