forked from qt-creator/qt-creator
CppEditor: Consider symbol occurrences in comments
... when renaming. For local renaming, we consider only function parameters. Task-number: QTCREATORBUG-12051 Change-Id: I7948d69f11b97663c9bd747ae6241a82dd9bdd82 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -16,6 +16,8 @@ class TextDocument;
|
||||
class TextEditorWidget;
|
||||
}
|
||||
|
||||
namespace Utils { namespace Text { class Range; } }
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QWidget;
|
||||
QT_END_NAMESPACE
|
||||
@@ -226,6 +228,8 @@ private:
|
||||
TextEditor::TextDocument *doc);
|
||||
virtual bool referencesShadowFile(const TextEditor::TextDocument *doc,
|
||||
const Utils::FilePath &candidate);
|
||||
virtual QList<Utils::Text::Range> additionalDocumentHighlights(
|
||||
TextEditor::TextEditorWidget *, const QTextCursor &) { return {}; }
|
||||
};
|
||||
|
||||
} // namespace LanguageClient
|
||||
|
||||
Reference in New Issue
Block a user