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:
@@ -26,11 +26,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <languageclient/client.h>
|
||||
#include <utils/link.h>
|
||||
#include <utils/optional.h>
|
||||
|
||||
#include <QVersionNumber>
|
||||
|
||||
namespace Core { class SearchResultItem; }
|
||||
namespace CppTools { class CppEditorWidgetInterface; }
|
||||
namespace ProjectExplorer { class Project; }
|
||||
namespace TextEditor { class TextDocument; }
|
||||
|
||||
@@ -52,6 +54,12 @@ public:
|
||||
|
||||
void findUsages(TextEditor::TextDocument *document, const QTextCursor &cursor,
|
||||
const Utils::optional<QString> &replacement);
|
||||
void followSymbol(TextEditor::TextDocument *document,
|
||||
const QTextCursor &cursor,
|
||||
CppTools::CppEditorWidgetInterface *editorWidget,
|
||||
Utils::ProcessLinkCallback &&callback,
|
||||
bool resolveTarget,
|
||||
bool openInSplit);
|
||||
|
||||
void enableTesting();
|
||||
|
||||
@@ -62,6 +70,9 @@ signals:
|
||||
|
||||
private:
|
||||
class Private;
|
||||
class FollowSymbolData;
|
||||
class VirtualFunctionAssistProcessor;
|
||||
class VirtualFunctionAssistProvider;
|
||||
Private * const d;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user