mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 03:18:32 +00:00
Adds support for exporting both the generic function decl with concrete default arguments to clang, as well as exporting the monomorphized concrete function def. This required adding the `SpecificId` to the exported global variable name, to avoid duplicate names in the global vars. I also now set up an evaluated context in `clang_sema` when declaring the default arg expression with clang, to avoid the problem of emitting concrete AST expressions in an unevaluated context from the in-progress template function decl context when exporting default values for generics. Note: Default values for generic parameters of generic functions are not yet supported.