mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add some encapsulation to CppDomain (#7579)
Start tracking the domain within `CppContext`s instead of having them duplicate its fields. This allows us to remove the shared ownership of the clang parser. --------- Co-authored-by: Christopher Di Bella <cjdb.ns@gmail.com>
This commit is contained in:
co-authored by
Christopher Di Bella
parent
9b8a2124b9
commit
9bcee64b32
@@ -160,7 +160,7 @@ auto CheckUnit::InitPackageScopeAndImports() -> void {
|
||||
ImportOtherPackages(namespace_type_id);
|
||||
|
||||
ImportCpp(context_, unit_and_imports_->cpp_imports,
|
||||
unit_and_imports_->cpp_domain.get());
|
||||
unit_and_imports_->cpp_domain);
|
||||
}
|
||||
|
||||
auto CheckUnit::CollectDirectImports(
|
||||
|
||||
Reference in New Issue
Block a user