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:
Richard Smith
2026-07-31 18:08:13 +00:00
committed by GitHub
co-authored by Christopher Di Bella
parent 9b8a2124b9
commit 9bcee64b32
13 changed files with 141 additions and 66 deletions
+1 -1
View File
@@ -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(