Merge pull request #38920 from apple/show-cursor-refactorings

[Refactorings] Add cursor refactorings for the start of the range
This commit is contained in:
Ben Barham
2021-08-21 07:35:51 +10:00
committed by GitHub
5 changed files with 51 additions and 68 deletions

View File

@@ -404,9 +404,9 @@ int main(int argc, char *argv[]) {
if (options::Action == RefactoringKind::None) {
llvm::SmallVector<RefactoringKind, 32> Kinds;
bool RangeStartMayNeedRename = false;
collectAvailableRefactorings(SF, Range, RangeStartMayNeedRename, Kinds,
{&PrintDiags});
bool CollectRangeStartRefactorings = false;
collectAvailableRefactorings(SF, Range, CollectRangeStartRefactorings,
Kinds, {&PrintDiags});
llvm::outs() << "Action begins\n";
for (auto Kind : Kinds) {
llvm::outs() << getDescriptiveRefactoringKindName(Kind) << "\n";