forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user