forked from qt-creator/qt-creator
ClangCodeModel: Adapt clangd tooltip test for include directives
This feature was recently added upstream (https://reviews.llvm.org/D107137). Change-Id: I022855cd5d69230b755cdd657c5a7df2db5508ce Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -604,8 +604,10 @@ void ClangdTestTooltips::test()
|
||||
QCOMPARE(editor->document(), doc);
|
||||
QVERIFY(editor->editorWidget());
|
||||
|
||||
if (QLatin1String(QTest::currentDataTag()) == QLatin1String("IncludeDirective"))
|
||||
if (client()->versionNumber() < QVersionNumber(14)
|
||||
&& QLatin1String(QTest::currentDataTag()) == QLatin1String("IncludeDirective")) {
|
||||
QSKIP("FIXME: clangd sends empty or no hover data for includes");
|
||||
}
|
||||
|
||||
QTimer timer;
|
||||
timer.setSingleShot(true);
|
||||
@@ -631,7 +633,6 @@ void ClangdTestTooltips::test()
|
||||
QEXPECT_FAIL("TypeName_ResolveTemplateTypeAlias", "typedef already resolved in AST", Abort);
|
||||
QCOMPARE(int(helpItem.category()), expectedCategory);
|
||||
QEXPECT_FAIL("TemplateClassQualified", "Additional look-up needed?", Abort);
|
||||
QEXPECT_FAIL("AutoTypeTemplate", "Additional look-up needed?", Abort);
|
||||
QCOMPARE(helpItem.helpIds(), expectedIds);
|
||||
QCOMPARE(helpItem.docMark(), expectedMark);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user