forked from qt-creator/qt-creator
ClangCodeModel: Re-enable renaming via clangd
... for clangd >= 16, which has the configurable rename limit. Still allow users to opt out for now. Change-Id: I86d6809b66ffbf80245b61cf57c648842d2e17af Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -489,9 +489,8 @@ void ClangdClient::findUsages(TextDocument *document, const QTextCursor &cursor,
|
||||
if (searchTerm.isEmpty())
|
||||
return;
|
||||
|
||||
// Will fix QTCREATORBUG-27978 and QTCREATORBUG-28109 once enabled by default.
|
||||
if (replacement && versionNumber() >= QVersionNumber(16)
|
||||
&& Utils::qtcEnvironmentVariableIsSet("QTC_CLANGD_RENAMING")) {
|
||||
&& Utils::qtcEnvironmentVariable("QTC_CLANGD_RENAMING") != "0") {
|
||||
symbolSupport().renameSymbol(document, adjustedCursor, *replacement,
|
||||
CppEditor::preferLowerCaseFileNames());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user