forked from qt-creator/qt-creator
ClangCodeModel: Fix erroneous highlighting as output argument
... for objects with non-const member calls.
Amends 8247f4f3dd.
Fixes: QTCREATORBUG-27306
Change-Id: I13fdf1ff9daf9ac084beda6c1d8ada5801adca4c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1315,6 +1315,12 @@ void ClangdTestHighlighting::test_data()
|
||||
QTest::newRow("deref operator (object)") << 960 << 10 << 960 << 11 << QList<int>{C_LOCAL} << 0;
|
||||
QTest::newRow("deref operator (member)") << 960 << 12 << 960 << 13 << QList<int>{C_FIELD} << 0;
|
||||
QTest::newRow("nested call") << 979 << 20 << 979 << 21 << QList<int>{C_LOCAL} << 0;
|
||||
QTest::newRow("member call on dependent (1)") << 996 << 19 << 996 << 22
|
||||
<< QList<int>{C_FIELD} << 0;
|
||||
QTest::newRow("member call on dependent (2)") << 996 << 38 << 996 << 41
|
||||
<< QList<int>{C_FIELD} << 0;
|
||||
QTest::newRow("member call on dependent (3)") << 999 << 9 << 999 << 12
|
||||
<< QList<int>{C_LOCAL} << 0;
|
||||
}
|
||||
|
||||
void ClangdTestHighlighting::test()
|
||||
|
||||
Reference in New Issue
Block a user