Rename cpp_ast to clang_ast_unit (#5926)

Followup of #5924.
This commit is contained in:
Boaz Brickner
2025-08-08 08:11:49 +00:00
committed by GitHub
parent d5cb9a7144
commit 9f108bad6e
13 changed files with 42 additions and 36 deletions
+5 -4
View File
@@ -154,10 +154,11 @@ auto CheckUnit::InitPackageScopeAndImports() -> void {
const auto& cpp_imports = unit_and_imports_->cpp_imports;
if (!cpp_imports.empty()) {
auto* cpp_ast = unit_and_imports_->unit->cpp_ast;
CARBON_CHECK(cpp_ast);
CARBON_CHECK(!cpp_ast->get());
*cpp_ast = ImportCppFiles(context_, cpp_imports, fs_, clang_invocation_);
auto* clang_ast_unit = unit_and_imports_->unit->clang_ast_unit;
CARBON_CHECK(clang_ast_unit);
CARBON_CHECK(!clang_ast_unit->get());
*clang_ast_unit =
ImportCppFiles(context_, cpp_imports, fs_, clang_invocation_);
}
}