Generate AST when importing a cpp file (#4790)

Ignore the AST and support a single Cpp import, for now.
Report cpp compilation errors and warnings.
Part of #4666
This commit is contained in:
Boaz Brickner
2025-01-14 20:45:50 +00:00
committed by GitHub
parent f5f6ae214d
commit 5b70a3ea91
16 changed files with 481 additions and 25 deletions
+2 -2
View File
@@ -841,8 +841,8 @@ auto CompileSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
// Execute the actual checking.
CARBON_VLOG_TO(driver_env.vlog_stream, "*** Check::CheckParseTrees ***\n");
Check::CheckParseTrees(check_units, options_.prelude_import,
driver_env.vlog_stream);
Check::CheckParseTrees(check_units, options_.prelude_import, driver_env.fs,
driver_env.vlog_stream, driver_env.fuzzing);
CARBON_VLOG_TO(driver_env.vlog_stream,
"*** Check::CheckParseTrees done ***\n");
for (auto& unit : units) {