mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[interop] emit a parsable C++ header for a module that includes namespace declaration for the module interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//===--- ModuleContentsWriter.h - Walk a module to print ObjC ---*- C++ -*-===//
|
||||
//===--- ModuleContentsWriter.h - Walk module to print ObjC/C++ -*- C++ -*-===//
|
||||
//
|
||||
// This source file is part of the Swift.org open source project
|
||||
//
|
||||
@@ -33,6 +33,12 @@ void printModuleContentsAsObjC(raw_ostream &os,
|
||||
llvm::SmallPtrSetImpl<ImportModuleTy> &imports,
|
||||
ModuleDecl &M);
|
||||
|
||||
/// Prints the declarations of \p M to \p os in C++ language mode and collects
|
||||
/// imports in \p imports along the way.
|
||||
void printModuleContentsAsCxx(raw_ostream &os,
|
||||
llvm::SmallPtrSetImpl<ImportModuleTy> &imports,
|
||||
ModuleDecl &M);
|
||||
|
||||
} // end namespace swift
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user