ClangCodeModel: Relax check for const-ness

... when detecting output arguments with clangd.
This should lead to fewer false positives. We plan to handle false
negatives on a case-by-case basis (rather than the other way around).

Change-Id: I541b418927dc410c2ea4ea9f6c1b5a7bd291a1a8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-12-09 16:01:46 +01:00
parent fc3b7f7ac5
commit 5f15e1f066
3 changed files with 13 additions and 3 deletions

View File

@@ -1277,6 +1277,8 @@ void ClangdTestHighlighting::test_data()
<< QList<int>{C_STRING} << 0;
QTest::newRow("user-defined operator call") << 860 << 7 << 860 << 8
<< QList<int>{C_LOCAL} << 0;
QTest::newRow("const member as function argument") << 868 << 32 << 868 << 43
<< QList<int>{C_FIELD} << 0;
}
void ClangdTestHighlighting::test()