mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 11:21:05 +01:00
Remove empty lambda parameters in handle_function (#7777)
These are marked as redundant by clang-tidy 23
This commit is contained in:
@@ -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