forked from qt-creator/qt-creator
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:
@@ -863,6 +863,8 @@ ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targetOffse
|
|||||||
const QStringView docView = QStringView(content);
|
const QStringView docView = QStringView(content);
|
||||||
for (auto it = renamedTargetParameters.cbegin();
|
for (auto it = renamedTargetParameters.cbegin();
|
||||||
it != renamedTargetParameters.cend(); ++it) {
|
it != renamedTargetParameters.cend(); ++it) {
|
||||||
|
if (!it.key()->name())
|
||||||
|
continue;
|
||||||
const QString paramName = Overview().prettyName(it.key()->name());
|
const QString paramName = Overview().prettyName(it.key()->name());
|
||||||
for (const Token &tok : functionComments) {
|
for (const Token &tok : functionComments) {
|
||||||
const TranslationUnit * const tu = targetFile->cppDocument()->translationUnit();
|
const TranslationUnit * const tu = targetFile->cppDocument()->translationUnit();
|
||||||
|
Reference in New Issue
Block a user