mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 12:20:27 +00:00
Remove empty lambda parameters in handle_function (#7777)
These are marked as redundant by clang-tidy 23
This commit is contained in:
1 parent
111ec69b65
commit
09feee7534
1 file changed
+1
-1
@@ -54,7 +54,7 @@ auto HandleParseNode(Context& context, Parse::FunctionIntroducerId node_id)
|
||||
static auto HandleReturnDecl(Context& context, Parse::AnyReturnDeclId node_id)
|
||||
-> bool {
|
||||
auto [expr_node_id, expr_inst_id] = context.node_stack().PopExprWithNodeId();
|
||||
Context::FormExpr form_expr = [&]() {
|
||||
Context::FormExpr form_expr = [&] {
|
||||
if (context.parse_tree().node_kind(node_id) == Parse::ReturnTypeId::Kind) {
|
||||
return ReturnExprAsForm(context, expr_node_id, expr_inst_id);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user