mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
28
include/swift/AST/ModuleInterfacePrinting.h
Normal file
28
include/swift/AST/ModuleInterfacePrinting.h
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user