forked from qt-creator/qt-creator
ClangCodeModel: Adapt test to upstream change
Apparently, friend declarations now get the "declaration" modifier. Change-Id: I30255d9953c96f2579a3fc66232a21edf406a01a 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:
@@ -951,7 +951,8 @@ void ClangdTestHighlighting::test_data()
|
|||||||
QTest::newRow("call to function pointer alias") << 344 << 5 << 344 << 13
|
QTest::newRow("call to function pointer alias") << 344 << 5 << 344 << 13
|
||||||
<< QList<int>{C_TYPE} << 0;
|
<< QList<int>{C_TYPE} << 0;
|
||||||
QTest::newRow("friend class declaration") << 350 << 18 << 350 << 27
|
QTest::newRow("friend class declaration") << 350 << 18 << 350 << 27
|
||||||
<< QList<int>{C_TYPE} << 0;
|
<< (client()->versionNumber().majorVersion() >= 16
|
||||||
|
? QList<int>{C_TYPE, C_DECLARATION}: QList<int>{C_TYPE}) << 0;
|
||||||
QTest::newRow("friend class reference") << 351 << 34 << 351 << 43
|
QTest::newRow("friend class reference") << 351 << 34 << 351 << 43
|
||||||
<< QList<int>{C_TYPE} << 0;
|
<< QList<int>{C_TYPE} << 0;
|
||||||
QTest::newRow("function parameter of friend class type") << 351 << 45 << 351 << 50
|
QTest::newRow("function parameter of friend class type") << 351 << 45 << 351 << 50
|
||||||
|
Reference in New Issue
Block a user