File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
tools/SourceKit/include/SourceKit/Core Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -556,8 +556,15 @@ struct CursorSymbolInfo {
556
556
for (auto ParentContext : ParentContexts) {
557
557
ParentContext.print (OS, Indentation + " " );
558
558
}
559
+
560
+ llvm::SmallVector<ReferencedDeclInfo> SortedReferencedSymbols (
561
+ ReferencedSymbols.begin (), ReferencedSymbols.end ());
562
+ std::sort (SortedReferencedSymbols.begin (), SortedReferencedSymbols.end (),
563
+ [](const ReferencedDeclInfo &LHS, const ReferencedDeclInfo &RHS) {
564
+ return LHS.USR < RHS.USR ;
565
+ });
559
566
OS << Indentation << " ReferencedSymbols:" << ' \n ' ;
560
- for (auto ReferencedSymbol : ReferencedSymbols ) {
567
+ for (auto ReferencedSymbol : SortedReferencedSymbols ) {
561
568
ReferencedSymbol.print (OS, Indentation + " " );
562
569
}
563
570
OS << Indentation << " ReceiverUSRs:" << ' \n ' ;
You can’t perform that action at this time.
0 commit comments