mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:00:13 +01:00
This would save space for every `EntityName` that is not an imported C++ global variable. C++ global variables include static data members. Created `CppGlobalVarId`, `CppGlobalVarKey` and `CppGlobalVar` to allow having `CanonicalValueStore` that maps `EntityNameId` (which is in `CppGlobalVarKey` and `CppGlobalVar`) to `ClangDeclId` (which is also in `CppGlobalVar`). This is similar to `ClangDeclId`, `ClangDeclKey` and `ClangDecl` .