forked from qt-creator/qt-creator
ClangCodeModel: Do not highlight argument of operator*
... as output parameter with clangd. Task-number: QTCREATORBUG-27111 Change-Id: I5def562dcb9b8b0dac036fd46ed7e996c0297c95 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:
@@ -2711,7 +2711,8 @@ static void semanticHighlighter(QFutureInterface<HighlightingResult> &future,
|
||||
if (detail.startsWith("operator")) {
|
||||
return !detail.contains('=')
|
||||
&& !detail.contains("++") && !detail.contains("--")
|
||||
&& !detail.contains("<<") && !detail.contains(">>");
|
||||
&& !detail.contains("<<") && !detail.contains(">>")
|
||||
&& !detail.contains("*");
|
||||
}
|
||||
firstChildTree << n.children().value_or(QList<AstNode>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user