File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
test/ClangImporter/Inputs Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -450,12 +450,12 @@ void swift::ide::printSubmoduleInterface(
450
450
451
451
// Sort imported declarations in source order *within a submodule*.
452
452
for (auto &P : ClangDecls) {
453
- std::sort (P.second .begin (), P.second .end (),
454
- [&](std::pair<Decl *, clang::SourceLocation> LHS,
455
- std::pair<Decl *, clang::SourceLocation> RHS) -> bool {
456
- return ClangSourceManager.isBeforeInTranslationUnit (LHS.second ,
457
- RHS.second );
458
- });
453
+ std::stable_sort (P.second .begin (), P.second .end (),
454
+ [&](std::pair<Decl *, clang::SourceLocation> LHS,
455
+ std::pair<Decl *, clang::SourceLocation> RHS) -> bool {
456
+ return ClangSourceManager.isBeforeInTranslationUnit (LHS.second ,
457
+ RHS.second );
458
+ });
459
459
}
460
460
461
461
// Sort Swift declarations so that we print them in a consistent order.
Original file line number Diff line number Diff line change @@ -107,11 +107,11 @@ struct NSOptions : OptionSet {
107
107
static var __PrivA: NSOptions { get }
108
108
static var B: NSOptions { get }
109
109
}
110
- @available(swift, obsoleted: 3, renamed: "__PrivCFType")
111
- typealias __PrivCFTypeRef = __PrivCFType
112
110
class __PrivCFType : _CFObject {
113
111
}
112
+ @available(swift, obsoleted: 3, renamed: "__PrivCFType")
113
+ typealias __PrivCFTypeRef = __PrivCFType
114
+ typealias __PrivCFSub = __PrivCFType
114
115
@available(swift, obsoleted: 3, renamed: "__PrivCFSub")
115
116
typealias __PrivCFSubRef = __PrivCFSub
116
- typealias __PrivCFSub = __PrivCFType
117
117
typealias __PrivInt = Int32
You can’t perform that action at this time.
0 commit comments