ClangCodeModel: Another output argument highlighting fix

Change-Id: I2b784c32706a4eaa837cf999884656d62b253e3d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2022-04-12 12:59:40 +02:00
parent 9146ce4625
commit b649f288ac

View File

@@ -2714,6 +2714,8 @@ static void semanticHighlighter(QFutureInterface<HighlightingResult> &future,
// the call happens, and should not be highlighted as an output argument.
// If the call is not fully resolved (as in templates), we don't
// know whether the argument is passed as const or not.
if (it->arcanaContains("dependent type"))
return false;
const QList<AstNode> children = it->children().value_or(QList<AstNode>());
return children.isEmpty()
|| (children.first().range() != (it - 1)->range()