Reduce clang compilation time of tst_qmetatype by ~50%

We do not need to check all possible basic type combinations in
the autoregistration test.

Change-Id: Ibfb97a93d9d1862e669d843988976690bbc83c74
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
bb10
Jędrzej Nowacki 2014-03-06 12:40:15 +01:00 committed by The Qt Project
parent 1d6de20e0b
commit 564297d7c4
1 changed files with 1 additions and 13 deletions

View File

@ -1504,15 +1504,11 @@ void tst_QMetaType::automaticTemplateRegistration()
#define FOR_EACH_STATIC_PRIMITIVE_TYPE(F) \
F(bool) \
F(int) \
F(uint) \
F(qlonglong) \
F(qulonglong) \
F(double) \
F(long) \
F(short) \
F(char) \
F(ulong) \
F(ushort) \
F(uchar) \
F(float) \
F(QObject*) \
@ -1520,19 +1516,11 @@ void tst_QMetaType::automaticTemplateRegistration()
F(CustomMovable)
#define FOR_EACH_STATIC_PRIMITIVE_TYPE2(F, SecondaryRealName) \
F(bool, SecondaryRealName) \
F(int, SecondaryRealName) \
F(uint, SecondaryRealName) \
F(qlonglong, SecondaryRealName) \
F(qulonglong, SecondaryRealName) \
F(long, SecondaryRealName) \
F(short, SecondaryRealName) \
F(char, SecondaryRealName) \
F(ulong, SecondaryRealName) \
F(ushort, SecondaryRealName) \
F(uchar, SecondaryRealName) \
F(QObject*, SecondaryRealName) \
F(QString, SecondaryRealName)
F(QObject*, SecondaryRealName)
#define CREATE_AND_VERIFY_CONTAINER(CONTAINER, ...) \
{ \