qt5base-lts/tests/auto
Simon Hausmann 310031188c Fix moc stumbling over gcc __attribute__ extensions
Reported by David Faure.

In KDE a DEPRECATED macro gets defined in a header file created by cmake.
The define is not guarded with #if Q_CC_GNU or similar because at cmake
time the compiler is determined. Therefore moc suddenly sees this gcc
specific token and stumbles over it.

This patch simply defines an empty __attribute__ macro that will expand
to nothing and thus become invisible to moc's "C++ parser" after the
pre-processing.

Change-Id: I4448b9ac3f72b6334e32b27484401fb0fca23a0c
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-10-01 14:27:14 +02:00
..
cmake Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Include qexception.h instead of qtconcurrentexception.h 2012-09-28 23:50:10 +02:00
corelib Make documentation of QVariant::isNull more explicit. 2012-09-29 02:31:35 +02:00
dbus Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui Test: Enable tst_QWMatrix::operator_star_qwmatrix 2012-09-27 21:13:52 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix MinGW/gcc warning about NOMINMAX being redefined 2012-09-26 10:08:59 +02:00
opengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
other QMetaType build fix with Q_NO_CURSOR and friends. 2012-09-27 02:37:19 +02:00
printsupport QtPrintSupport: allow slight deviations from pre-defined paper sizes in tests 2012-09-26 10:08:59 +02:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
testlib Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tools Fix moc stumbling over gcc __attribute__ extensions 2012-10-01 14:27:14 +02:00
widgets tst_QDateTimeEdit: cleanup whitespace & follow Qt coding style 2012-09-28 21:12:21 +02:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
platformquirks.h Auto tests: remove PlatformQuirks::isAutoMaximizing() 2012-09-26 10:08:59 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00