We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13f5db commit b801331Copy full SHA for b801331
tools/SourceKit/include/SourceKit/Core/LangSupport.h
@@ -557,6 +557,13 @@ struct CursorSymbolInfo {
557
for (auto ParentContext : ParentContexts) {
558
ParentContext.print(OS, Indentation + " ");
559
}
560
+
561
+ llvm::SmallVector<ReferencedDeclInfo> SortedReferencedSymbols(
562
+ ReferencedSymbols.begin(), ReferencedSymbols.end());
563
+ std::sort(SortedReferencedSymbols.begin(), SortedReferencedSymbols.end(),
564
+ [](const ReferencedDeclInfo &LHS, const ReferencedDeclInfo &RHS) {
565
+ return LHS.USR < RHS.USR;
566
+ });
567
OS << Indentation << "ReferencedSymbols:" << '\n';
568
for (auto ReferencedSymbol : ReferencedSymbols) {
569
ReferencedSymbol.print(OS, Indentation + " ");
0 commit comments