[SourceKit] Pass ResolvedCursorInfo as shared pointer instead of by value

This allows us to model the `ResolvedCursorInfo` types as a proper type hierarchy instead of having to store all values in the base `ResolvedCursorInfo` type.

rdar://102853071
This commit is contained in:
Alex Hoppen
2023-02-13 12:18:48 +01:00
parent ab42032087
commit ee26b4b299
12 changed files with 350 additions and 355 deletions

View File

@@ -136,7 +136,7 @@ void collectAvailableRefactorings(
llvm::SmallVectorImpl<RefactoringKind> &Kinds,
llvm::ArrayRef<DiagnosticConsumer *> DiagConsumers);
void collectAvailableRefactorings(const ResolvedCursorInfo &CursorInfo,
void collectAvailableRefactorings(ResolvedCursorInfoPtr CursorInfo,
llvm::SmallVectorImpl<RefactoringKind> &Kinds,
bool ExcludeRename);