summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-05-31 16:35:10 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2022-06-02 11:29:14 +0000
commit01ceb3a3cb40561aad6aa0d59bf46ec85cb80921 (patch)
tree80f7f7688141292059ce27b65cbe58e47dc14b6f /tests
parent5de18c67f0bfde653d290c7e3b32fda573630358 (diff)
downloadqt-creator-01ceb3a3cb40561aad6aa0d59bf46ec85cb80921.tar.gz
ClangCodeModel: Switch to LSP-based UI header approach
Generating ui headers in a well-known path and then including that one in the compilation database does not work in the presence of multiple ui files with the same name. As it turns out, we don't have to generate any files at all; instead, we pass the file contents directly to clangd, which then uses them when parsing includes of the respective header. User-visible behavior change apart from the abovementioned bug fix: Tooltips and "follow symbol" on the include directive now always use the actual location of the header provided by the build system. Fixes: QTCREATORBUG-27584 Change-Id: I6b13e12cb3a365199567b0bc824d12b373117697 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unittest/CMakeLists.txt1
-rw-r--r--tests/unit/unittest/unittest.qbs2
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/unit/unittest/CMakeLists.txt b/tests/unit/unittest/CMakeLists.txt
index 502390cedf..a6b0d3100d 100644
--- a/tests/unit/unittest/CMakeLists.txt
+++ b/tests/unit/unittest/CMakeLists.txt
@@ -332,7 +332,6 @@ extend_qtc_test(unittest
SOURCES_PREFIX ../../../src/plugins/clangcodemodel
SOURCES
clangactivationsequenceprocessor.cpp clangactivationsequenceprocessor.h
- clanguiheaderondiskmanager.cpp clanguiheaderondiskmanager.h
)
find_package(yaml-cpp QUIET MODULE)
diff --git a/tests/unit/unittest/unittest.qbs b/tests/unit/unittest/unittest.qbs
index 598980bec1..00f3e2a8c6 100644
--- a/tests/unit/unittest/unittest.qbs
+++ b/tests/unit/unittest/unittest.qbs
@@ -203,8 +203,6 @@ Project {
files: [
"clangactivationsequenceprocessor.cpp",
"clangactivationsequenceprocessor.h",
- "clanguiheaderondiskmanager.cpp",
- "clanguiheaderondiskmanager.h",
]
}