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 SmithandChristopher Di Bella authored and GitHub committed 2026-07-31 18:08:13 +00:00
1 parent 9b8a2124b9
commit 9bcee64b32
13 files changed
+141 -66

No files matched your search

+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(