Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion include/swift/AST/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ class ModuleDecl : public DeclContext, public TypeDecl {
return { Files.begin(), Files.size() };
}

bool isClangModule() const;
void addFile(FileUnit &newFile);

/// Creates a map from \c #filePath strings to corresponding \c #fileID
Expand Down
3 changes: 0 additions & 3 deletions lib/AST/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,6 @@ ArrayRef<ImplicitImport> ModuleDecl::getImplicitImports() const {
{});
}

bool ModuleDecl::isClangModule() const {
return findUnderlyingClangModule() != nullptr;
}

void ModuleDecl::addFile(FileUnit &newFile) {
// If this is a LoadedFile, make sure it loaded without error.
Expand Down
2 changes: 1 addition & 1 deletion lib/Index/IndexSymbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ SymbolInfo index::getSymbolInfoForModule(ModuleEntity Mod) {
info.SubKind = SymbolSubKind::None;
info.Properties = SymbolPropertySet();
if (auto *D = Mod.getAsSwiftModule()) {
if (!D->isClangModule()) {
if (!D->isNonSwiftModule()) {
info.Lang = SymbolLanguage::Swift;
} else {
info.Lang = SymbolLanguage::C;
Expand Down
4 changes: 2 additions & 2 deletions tools/swift-ide-test/swift-ide-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3191,7 +3191,7 @@ static int doPrintModuleImports(const CompilerInvocation &InitInvok,
SmallVector<ModuleDecl::ImportedModule, 16> scratch;
for (auto next : namelookup::getAllImports(M)) {
llvm::outs() << next.importedModule->getName();
if (next.importedModule->isClangModule())
if (next.importedModule->isNonSwiftModule())
llvm::outs() << " (Clang)";
llvm::outs() << ":\n";

Expand All @@ -3205,7 +3205,7 @@ static int doPrintModuleImports(const CompilerInvocation &InitInvok,
llvm::outs() << "." << accessPathPiece.Item;
}

if (import.importedModule->isClangModule())
if (import.importedModule->isNonSwiftModule())
llvm::outs() << " (Clang)";
llvm::outs() << "\n";
}
Expand Down