Add Support for #include in cpp files imported from Carbon (#4809)

Propagate `FileSystem` to `buildASTFromCodeWithArgs`().
Part of #4666
This commit is contained in:
Boaz Brickner
2025-01-15 21:27:58 +00:00
committed by GitHub
parent aa23e9e2d8
commit 28d6aedbbb
4 changed files with 38 additions and 6 deletions
+3 -2
View File
@@ -12,8 +12,9 @@
namespace Carbon::Check {
// Parses the C++ code and report errors and warnings.
auto ImportCppFile(Context& context, SemIRLoc loc, llvm::StringRef file_path,
llvm::StringRef code) -> void;
auto ImportCppFile(Context& context, SemIRLoc loc,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs,
llvm::StringRef file_path, llvm::StringRef code) -> void;
} // namespace Carbon::Check