mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user