Support for -> ref/var/val auto. (#7977)

Extend support for return type deduction to also handle top-level
category specifiers.

Assisted-by: Claude via Antigravity
This commit is contained in:
Richard Smith authored and GitHub committed 2026-10-15 21:13:38 +00:00
1 parent f0b030f2c7
commit 3af25cc1ba
14 files changed
+595 -49

No files matched your search

+1 -1
View File
@@ -1578,7 +1578,7 @@ static auto ExportFunctionToCpp(Context& context, SemIR::LocId loc_id,
-> clang::NamedDecl* {
if (const auto& callee = context.functions().Get(callee_function_id);
callee.has_pending_deduced_return_type() ||
(callee.has_deduced_return_type && callee.generic_id.has_value())) {
(callee.has_deduced_return_type() && callee.generic_id.has_value())) {
context.TODO(loc_id, "export of function with deduced return type");
return nullptr;
}