forked from qt-creator/qt-creator
ClangCodeModel: Fix semantic highlighting for __func__
This is a local variable, not a macro. Also take into account the new upstream support for this (see https://reviews.llvm.org/D131175), which required us to fix our assumption that "static" always means "static member". Change-Id: I69f3c98737571cbd55f9c64c02292426acb6031b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1297,12 +1297,12 @@ void ClangdTestHighlighting::test_data()
|
||||
<< QList<int>{C_FIELD} << 0;
|
||||
QTest::newRow("output arg") << 945 << 20 << 945 << 23
|
||||
<< QList<int>{C_LOCAL, C_OUTPUT_ARGUMENT} << 0;
|
||||
QTest::newRow("built-in define 1") << 950 << 21 << 950 << 29
|
||||
<< QList<int>{C_MACRO} << 0;
|
||||
QTest::newRow("built-in define 2") << 951 << 21 << 951 << 33
|
||||
<< QList<int>{C_MACRO} << 0;
|
||||
QTest::newRow("built-in define 3") << 952 << 21 << 952 << 40
|
||||
<< QList<int>{C_MACRO} << 0;
|
||||
QTest::newRow("built-in variable 1") << 950 << 21 << 950 << 29
|
||||
<< QList<int>{C_LOCAL} << 0;
|
||||
QTest::newRow("built-in variable 2") << 951 << 21 << 951 << 33
|
||||
<< QList<int>{C_LOCAL} << 0;
|
||||
QTest::newRow("built-in variable 3") << 952 << 21 << 952 << 40
|
||||
<< QList<int>{C_LOCAL} << 0;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user