mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
When any field of a Carbon class is access from C++ for the first time, all fields are exported as `clang::FieldDecl`s (this is necessary because clang fields have an internal index that is initialized on first use). `ClangDeclStore` now provides bidirectional mapping. This allows looking up a `ClangDeclId` by `InstId`, so when Carbon class fields are exported they can be looked up that way.