AST printer: print declarations from a module in alphabetical order

Also, move module interface printing to libAST to make it reuseable.


Swift SVN r10932
This commit is contained in:
Dmitri Hrybenko
2013-12-06 20:23:54 +00:00
parent 7d9c88de5a
commit 8fcb7c428c
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
//===--- ModuleInterfacePrinting.h - Routines to print module interface ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_AST_MODULE_INTERFACE_PRINTING_H
#define SWIFT_AST_MODULE_INTERFACE_PRINTING_H
#include "swift/Basic/LLVM.h"
namespace swift {
class Module;
struct PrintOptions;
void printModuleInterface(Module *M, raw_ostream &OS,
const PrintOptions &Options);
} // namespace swift
#endif // SWIFT_AST_MODULE_INTERFACE_PRINTING_H