forked from qt-creator/qt-creator
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:
@@ -180,10 +180,8 @@ void ClangFollowSymbol::findLink(const CppTools::CursorInEditor &data,
|
||||
ClangdClient * const client
|
||||
= ClangModelManagerSupport::instance()->clientForFile(data.filePath());
|
||||
if (client && client->isFullyIndexed()) {
|
||||
QTC_ASSERT(client->documentOpen(data.textDocument()),
|
||||
client->openDocument(data.textDocument()));
|
||||
client->symbolSupport().findLinkAt(data.textDocument(), data.cursor(),
|
||||
std::move(processLinkCallback), resolveTarget);
|
||||
client->followSymbol(data.textDocument(), data.cursor(), data.editorWidget(),
|
||||
std::move(processLinkCallback), resolveTarget, inNextSplit);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user