blob: 0336b6e7da95b52c84ef19a7125b244b2c24da3f [file] [log] [blame]
//===--- ModuleContentsWriter.h - Walk a module to print ObjC ---*- C++ -*-===//
// This source file is part of the open source project
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
// See for license information
// See for the list of Swift project authors
#include "swift/AST/AttrKind.h"
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/ADT/SmallPtrSet.h"
namespace clang {
class Module;
namespace swift {
class ModuleDecl;
using ImportModuleTy = PointerUnion<ModuleDecl*, const clang::Module*>;
/// Prints the declarations of \p M to \p os, filtering by \p minRequiredAccess
/// and collecting imports in \p imports along the way.
void printModuleContentsAsObjC(raw_ostream &os,
llvm::SmallPtrSetImpl<ImportModuleTy> &imports,
ModuleDecl &M, AccessLevel minRequiredAccess);
} // end namespace swift