Skip to content

Conversation

zygoloid
Copy link
Contributor

When creating a Clang type corresponding to a Carbon type, create a fake Clang typedef whose name matches the Carbon type's name so that Clang diagnostics name the type using the Carbon name. Clang will also produce an aka describing the corresponding C++ type.

TODO: Figure out a way to effectively cache the typedefs and avoid computing a string representation and allocating a separate typedef declaration for every call argument before merging.

@zygoloid zygoloid force-pushed the toolchain-clang-type-names branch from 03c2d7a to 77804e9 Compare September 19, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant