mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Clean up some misc toolchain braced inits. (#4013)
Following up on #4012 and #4009, clean scattered cases which could be making better use of designated initializers.
This commit is contained in:
@@ -371,7 +371,9 @@ auto HandleFunctionDefinitionSuspend(Context& context,
|
||||
// Process the declaration portion of the function.
|
||||
auto [function_id, decl_id] =
|
||||
BuildFunctionDecl(context, node_id, /*is_definition=*/true);
|
||||
return {function_id, decl_id, context.decl_name_stack().Suspend()};
|
||||
return {.function_id = function_id,
|
||||
.decl_id = decl_id,
|
||||
.saved_name_state = context.decl_name_stack().Suspend()};
|
||||
}
|
||||
|
||||
auto HandleFunctionDefinitionResume(Context& context,
|
||||
|
||||
Reference in New Issue
Block a user