mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IDE] Implement generating the Swift interface for an C/ObjC header
This translates clang arguments to swift ones, uses the bridging header functionality to parse the provided file, and re-uses part of the module interface printing implementation to print an interface for the header. Part of rdar://19939192 Swift SVN r28062
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "swift/Basic/OptionSet.h"
|
||||
|
||||
namespace swift {
|
||||
class ASTContext;
|
||||
class ASTPrinter;
|
||||
class Module;
|
||||
struct PrintOptions;
|
||||
@@ -46,6 +47,11 @@ void printSubmoduleInterface(Module *M, ArrayRef<StringRef> FullModuleName,
|
||||
ModuleTraversalOptions TraversalOptions,
|
||||
ASTPrinter &Printer, const PrintOptions &Options);
|
||||
|
||||
/// Print the interface for a header that has been imported via the implicit
|
||||
/// objc header importing feature.
|
||||
void printHeaderInterface(StringRef Filename, ASTContext &Ctx,
|
||||
ASTPrinter &Printer, const PrintOptions &Options);
|
||||
|
||||
} // namespace ide
|
||||
|
||||
} // namespace swift
|
||||
|
||||
Reference in New Issue
Block a user