forked from qt-creator/qt-creator
Clang: Fix TokenProcessor.Qt* tests
With the upgrade to clang 7 these started to fail on Linux. Something changed in clang regarding the processing of our wrappedQtHeaders/QtCore/qobjectdefs.h. Since we can't rely on the include paths of Qt in the tests anyway, inline the relevant preprocessor directives into the test file to make the tests independent of that. Change-Id: Iba5cdc5483c3007346346d294374598a75fcb5a1 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -592,9 +592,9 @@ class WithVirtualFunctionDefined {
|
||||
namespace NFoo { namespace NBar { namespace NTest { class NamespaceTypeSpelling; } } }
|
||||
|
||||
Undeclared u;
|
||||
|
||||
#include "../../../../share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h"
|
||||
|
||||
#define Q_PROPERTY(arg) static_assert("Q_PROPERTY", #arg); // Keep these in sync with wrappedQtHeaders/QtCore/qobjectdefs.h
|
||||
#define SIGNAL(arg) #arg
|
||||
#define SLOT(arg) #arg
|
||||
class Property {
|
||||
Q_PROPERTY(const volatile unsigned long long * prop READ getProp WRITE setProp NOTIFY propChanged)
|
||||
Q_PROPERTY(const QString str READ getStr)
|
||||
|
||||
Reference in New Issue
Block a user