forked from qt-creator/qt-creator
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:
@@ -2714,6 +2714,8 @@ static void semanticHighlighter(QFutureInterface<HighlightingResult> &future,
|
|||||||
// the call happens, and should not be highlighted as an output argument.
|
// 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
|
// If the call is not fully resolved (as in templates), we don't
|
||||||
// know whether the argument is passed as const or not.
|
// 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>());
|
const QList<AstNode> children = it->children().value_or(QList<AstNode>());
|
||||||
return children.isEmpty()
|
return children.isEmpty()
|
||||||
|| (children.first().range() != (it - 1)->range()
|
|| (children.first().range() != (it - 1)->range()
|
||||||
|
Reference in New Issue
Block a user