CppEditor: Do not look for unnamed function parameters in comments

Task-number: QTCREATORBUG-30155
Change-Id: Idc0c7b7c68c99ffda52a4fee2c3dfe5ee52ce099
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Christian Kandeler
2024-01-18 11:10:39 +01:00
parent 03958b5806
commit 636faf30db

View File

@@ -863,6 +863,8 @@ ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targetOffse
const QStringView docView = QStringView(content);
for (auto it = renamedTargetParameters.cbegin();
it != renamedTargetParameters.cend(); ++it) {
if (!it.key()->name())
continue;
const QString paramName = Overview().prettyName(it.key()->name());
for (const Token &tok : functionComments) {
const TranslationUnit * const tu = targetFile->cppDocument()->translationUnit();