carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
http://docs.carbon-lang.dev/
Other
32.35k stars 1.48k forks source link

Implement 'extern library' support for functions. #4220

Closed jonmeow closed 3 months ago

jonmeow commented 3 months ago

Support for types (particularly classes) is left as a TODO.

There's also an issue I'm observing with a "define in impl" test, but this is probably an issue with resolving the prior declaration which is imported indirectly. The PR was already feeling big, so I'm choosing to cut here.

Note, this does not implement the rule "The owning library's API file must import the extern declaration, and must also contain a declaration."

jonmeow commented 3 months ago

Depends on #4219, split off LibraryNameId to try to make this smaller.