[PATCH] D121089: [pseudo] empty parameter-declaration should be allowed in lambda declarator.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 7 01:17:03 PST 2022


hokein created this revision.
hokein added a reviewer: sammccall.
Herald added a project: All.
hokein requested review of this revision.
Herald added a subscriber: alextsao1999.
Herald added a project: clang.

This was an oversight, as we did a avoild-nullable modication to
parameter-declaration-clause.


Repository:
  rG LLVM Github Monorepo

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121089.413371.patch
Type: text/x-patch
Size: 889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220307/537dd146/attachment.bin>


More information about the cfe-commits mailing list