From d1799b9aa126f7ba5bd561f7605262209ab0697f Mon Sep 17 00:00:00 2001
From: Nikolai Kosjar <nikolai.kosjar@qt.io>
Date: Fri, 15 Sep 2017 10:46:39 +0200
Subject: [PATCH] UnitTests: Fix build with QTC_NO_CLANG_LIBTOOLING

Change-Id: Ia2c5b9cf617e56f09bf334bdd57e58bf96c838b1
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
---
 .../source/clangrefactoringbackend-source.pri             | 8 ++++----
 tests/unit/unittest/unittest.pro                          | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tools/clangrefactoringbackend/source/clangrefactoringbackend-source.pri b/src/tools/clangrefactoringbackend/source/clangrefactoringbackend-source.pri
index 8ed0c6803c..50041e596a 100644
--- a/src/tools/clangrefactoringbackend/source/clangrefactoringbackend-source.pri
+++ b/src/tools/clangrefactoringbackend/source/clangrefactoringbackend-source.pri
@@ -28,7 +28,9 @@ SOURCES += \
     $$PWD/collectsymbolsaction.cpp \
     $$PWD/collectmacrossourcefilecallbacks.cpp \
     $$PWD/symbolscollector.cpp \
-    $$PWD/clangquerygatherer.cpp
+    $$PWD/clangquerygatherer.cpp \
+    $$PWD/symbolstorage.cpp \
+    $$PWD/symbolindexing.cpp
 
 HEADERS += \
     $$PWD/refactoringcompilationdatabase.h \
@@ -56,6 +58,4 @@ SOURCES += \
     $$PWD/sourcerangefilter.cpp \
     $$PWD/symbolindexer.cpp \
     $$PWD/symbolentry.cpp \
-    $$PWD/sourcelocationentry.cpp \
-    $$PWD/symbolstorage.cpp \
-    $$PWD/symbolindexing.cpp
+    $$PWD/sourcelocationentry.cpp
diff --git a/tests/unit/unittest/unittest.pro b/tests/unit/unittest/unittest.pro
index e4f2c363c0..28f64d62db 100644
--- a/tests/unit/unittest/unittest.pro
+++ b/tests/unit/unittest/unittest.pro
@@ -75,7 +75,6 @@ SOURCES += \
     symbolquery-test.cpp \
     storagesqlitestatementfactory-test.cpp \
     querysqlitestatementfactory-test.cpp \
-    symbolindexing-test.cpp \
     sqliteindex-test.cpp
 
 !isEmpty(LIBCLANG_LIBS) {
@@ -153,6 +152,7 @@ SOURCES += \
     refactoringengine-test.cpp \
     refactoringserver-test.cpp \
     sourcerangeextractor-test.cpp \
+    symbolindexing-test.cpp \
     symbolscollector-test.cpp \
     symbolfinder-test.cpp \
     testclangtool.cpp \
-- 
GitLab