Merge pull request #61823 from Robertorosmaninho/interop/ExpectedClassForErrorHandling

[Interop][SwiftToCxx] Introduces swift::Expected
This commit is contained in:
Alex Lorenz
2022-12-16 17:47:28 -08:00
committed by GitHub
6 changed files with 406 additions and 19 deletions

View File

@@ -799,6 +799,7 @@ EmittedClangHeaderDependencyInfo swift::printModuleContentsAsCxx(
os << "#ifndef SWIFT_CXX_INTEROP_HIDE_STL_OVERLAY\n";
os << "#include <string>\n";
os << "#endif\n";
os << "#include <new>\n";
// Embed an overlay for the standard library.
ClangSyntaxPrinter(moduleOS).printIncludeForShimHeader(
"_SwiftStdlibCxxOverlay.h");