UnitTests: Fix unit test build

Guard clang include.

Change-Id: Ia72b40fa787918f47508049b045a21edf976d93a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Marco Bubke
2020-09-01 11:09:55 +02:00
parent d6da7745fa
commit bfd8be99be

View File

@@ -25,6 +25,7 @@
#include <QtGlobal>
#ifdef CLANG_UNIT_TESTS
#include <clang-c/Index.h>
#if CINDEX_VERSION_MAJOR == 0 && CINDEX_VERSION_MINOR == 59
@@ -32,6 +33,7 @@
#else
# define DISABLED_FOR_CLANG_10(x) x
#endif
#endif
#ifdef Q_OS_WIN
# define DISABLED_ON_WINDOWS(x) DISABLED_##x