forked from qt-creator/qt-creator
UnitTests: Fix unit test build
Guard clang include. Change-Id: Ia72b40fa787918f47508049b045a21edf976d93a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
|
#ifdef CLANG_UNIT_TESTS
|
||||||
#include <clang-c/Index.h>
|
#include <clang-c/Index.h>
|
||||||
|
|
||||||
#if CINDEX_VERSION_MAJOR == 0 && CINDEX_VERSION_MINOR == 59
|
#if CINDEX_VERSION_MAJOR == 0 && CINDEX_VERSION_MINOR == 59
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
#else
|
#else
|
||||||
# define DISABLED_FOR_CLANG_10(x) x
|
# define DISABLED_FOR_CLANG_10(x) x
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
# define DISABLED_ON_WINDOWS(x) DISABLED_##x
|
# define DISABLED_ON_WINDOWS(x) DISABLED_##x
|
||||||
|
Reference in New Issue
Block a user