mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:00:11 +01:00
Add a `return_type_id` field to `FunctionInfo` in `toolchain/check/cpp/export.cpp`. As with the `explicit_params` field, `ExportFunctionSpecializationToCpp` updates this to the return type in the specific. Refactored `BuildCppFunctionDeclForCarbonFn` into `BuildCppFunctionDeclForNonGenericCarbonFn` and `BuildCppFunctionDeclForGenericCarbonFn`, with `BuildCppFunctionDecl` containing shared code. The `generic_type_impls_interface.carbon` test is updated to include a generic return type.