forked from qt-creator/qt-creator
Fix build in clangd tests
Amends 40181057cd
Complained that the Q_DECLARE_METATYPE comes too late.
Change-Id: Id5dd355fadcb4a6790d4c74dd1c637e0b1569aa4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -59,6 +59,18 @@ namespace ClangCodeModel {
|
||||
namespace Internal {
|
||||
namespace Tests {
|
||||
|
||||
using Range = std::tuple<int, int, int>;
|
||||
|
||||
} // namespace Tests
|
||||
} // namespace Internal
|
||||
} // namespace ClangCodeModel
|
||||
|
||||
Q_DECLARE_METATYPE(ClangCodeModel::Internal::Tests::Range)
|
||||
|
||||
namespace ClangCodeModel {
|
||||
namespace Internal {
|
||||
namespace Tests {
|
||||
|
||||
ClangdTest::~ClangdTest()
|
||||
{
|
||||
if (m_project)
|
||||
@@ -372,8 +384,6 @@ ClangdTestLocalReferences::ClangdTestLocalReferences()
|
||||
setMinimumVersion(13);
|
||||
}
|
||||
|
||||
using Range = std::tuple<int, int, int>;
|
||||
|
||||
// We currently only support local variables, but if and when clangd implements
|
||||
// the linkedEditingRange request, we can change the expected values for
|
||||
// the file-scope test cases from empty ranges to the actual locations.
|
||||
@@ -486,5 +496,3 @@ void ClangdTestLocalReferences::test()
|
||||
} // namespace Tests
|
||||
} // namespace Internal
|
||||
} // namespace ClangCodeModel
|
||||
|
||||
Q_DECLARE_METATYPE(ClangCodeModel::Internal::Tests::Range)
|
||||
|
||||
Reference in New Issue
Block a user