From 324105febeb8108a08797c716368b5c2b1e5a588 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 29 Sep 2021 12:22:58 +0200 Subject: [PATCH] ClangCodeModel: Fix a test The missing header file threw off parsing for some of the code below. Change-Id: I29f7895b4d88856cc39fd8e33742a37734953b9e Reviewed-by: David Schulz --- src/plugins/clangcodemodel/test/clangdtests.cpp | 5 ----- src/plugins/clangcodemodel/test/data/clangtestdata.qrc | 1 + .../test/data/highlighting/highlightingmarks.h | 0 3 files changed, 1 insertion(+), 5 deletions(-) create mode 100644 src/plugins/clangcodemodel/test/data/highlighting/highlightingmarks.h diff --git a/src/plugins/clangcodemodel/test/clangdtests.cpp b/src/plugins/clangcodemodel/test/clangdtests.cpp index 4622db96a69..c71bd2d3644 100644 --- a/src/plugins/clangcodemodel/test/clangdtests.cpp +++ b/src/plugins/clangcodemodel/test/clangdtests.cpp @@ -1298,11 +1298,6 @@ void ClangdTestHighlighting::test() "check if and how we want to support this", Abort); QEXPECT_FAIL("old-style signal with complex parameter (signal parameter part 3)", "check if and how we want to support this", Abort); - QEXPECT_FAIL("alias template instantiation (type)", "FIXME: clangd doesn't report this", Abort); - QEXPECT_FAIL("alias template instantiation (opening angle bracket)", - "FIXME: This construct does not appear in the AST", Abort); - QEXPECT_FAIL("alias template instantiation (closing angle bracket)", - "FIXME: This construct does not appear in the AST", Abort); QEXPECT_FAIL("function template specialization (opening angle bracket 1)", "specialization appears as a normal function in the AST", Abort); QEXPECT_FAIL("function template specialization (closing angle bracket 1)", diff --git a/src/plugins/clangcodemodel/test/data/clangtestdata.qrc b/src/plugins/clangcodemodel/test/data/clangtestdata.qrc index b006e3832ff..9dcc3fbae15 100644 --- a/src/plugins/clangcodemodel/test/data/clangtestdata.qrc +++ b/src/plugins/clangcodemodel/test/data/clangtestdata.qrc @@ -54,5 +54,6 @@ completion/preprocessorKeywordsCompletion2.cpp completion/preprocessorKeywordsCompletion3.cpp completion/privateFuncDefCompletion.cpp + highlighting/highlightingmarks.h diff --git a/src/plugins/clangcodemodel/test/data/highlighting/highlightingmarks.h b/src/plugins/clangcodemodel/test/data/highlighting/highlightingmarks.h new file mode 100644 index 00000000000..e69de29bb2d