ClangCodeModel: Let user choose the override

.... when following virtual function calls.
This brings us up to par with the built-in code model.
We do lose the icons, but they are of very little use in this context.

Change-Id: I29b27d538e7277d06a5af7acee07bddb6eb94c98
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-05-19 15:51:25 +02:00
parent 1372dfdf7f
commit b0d4fc359f
9 changed files with 454 additions and 32 deletions

View File

@@ -132,10 +132,8 @@ void RefactoringEngine::globalFollowSymbol(
inNextSplit);
return;
}
QTC_ASSERT(client->documentOpen(cursor.textDocument()),
client->openDocument(cursor.textDocument()));
client->symbolSupport().findLinkAt(cursor.textDocument(), cursor.cursor(), std::move(callback),
true);
client->followSymbol(cursor.textDocument(), cursor.cursor(), cursor.editorWidget(),
std::move(callback), true, inNextSplit);
}
} // namespace Internal