Switch from clang::ASTUnit to clang::CompilerInstance. (#6483)

This gives us a lot more control over how the compiler is built and
invoked. But no functionality changes are intended in this PR.
This commit is contained in:
Richard Smith
2025-12-10 21:54:51 +00:00
committed by GitHub
parent 6114df59ee
commit c4d162e5f5
7 changed files with 114 additions and 64 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
namespace Carbon::Check {
CppContext::CppContext(clang::ASTUnit* ast_unit) : ast_unit_(ast_unit) {}
CppContext::CppContext(std::unique_ptr<clang::FrontendAction> action)
: action_(std::move(action)) {}
CppContext::~CppContext() = default;