Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2019-08-20 16:30:12 -07:00
20 changed files with 125 additions and 90 deletions

View File

@@ -1207,11 +1207,12 @@ ModuleDecl::ReverseFullNameIterator::operator++() {
}
void
ModuleDecl::ReverseFullNameIterator::printForward(raw_ostream &out) const {
ModuleDecl::ReverseFullNameIterator::printForward(raw_ostream &out,
StringRef delim) const {
SmallVector<StringRef, 8> elements(*this, {});
swift::interleave(swift::reversed(elements),
[&out](StringRef next) { out << next; },
[&out] { out << '.'; });
[&out, delim] { out << delim; });
}
void