[clang] d5b8ecb - [pseudo] empty parameter-declaration should be allowed in lambda declarator.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 7 11:17:09 PST 2022


Author: Haojian Wu
Date: 2022-03-07T20:05:35+01:00
New Revision: d5b8ecbd33c95d9a6ac8371d5dc187196b71604d

URL: https://github.com/llvm/llvm-project/commit/d5b8ecbd33c95d9a6ac8371d5dc187196b71604d
DIFF: https://github.com/llvm/llvm-project/commit/d5b8ecbd33c95d9a6ac8371d5dc187196b71604d.diff

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

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

Differential Revision: https://reviews.llvm.org/D121089

Added: 
    

Modified: 
    clang/lib/Tooling/Syntax/Pseudo/cxx.bnf

Removed: 
    


################################################################################
diff  --git a/clang/lib/Tooling/Syntax/Pseudo/cxx.bnf b/clang/lib/Tooling/Syntax/Pseudo/cxx.bnf
index ee83abfa00626..2619ce1a43d81 100644
--- a/clang/lib/Tooling/Syntax/Pseudo/cxx.bnf
+++ b/clang/lib/Tooling/Syntax/Pseudo/cxx.bnf
@@ -69,7 +69,7 @@ nested-name-specifier := nested-name-specifier TEMPLATE_opt simple-template-id :
 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


        


More information about the cfe-commits mailing list