qt5base-lts/tests/auto/tools/moc
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
..
task71021 Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
Test.framework/Headers Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
testproject Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
.gitattributes Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
.gitignore Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
assign-namespace.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
backslash-newlines.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
c-comments.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
cstyle-enums.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
cxx11-enums.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
cxx11-explicit-override-control.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
cxx11-final-classes.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
dir-in-include-path.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
error-on-wrong-notify.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
escapes-in-string-literals.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
extraqualification.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
forgotten-qinterface.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
forward-declared-param.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
function-with-attributes.h Fix moc stumbling over gcc __attribute__ extensions 2012-10-01 14:27:14 +02:00
gadgetwithnoenums.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
Header Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
interface-from-framework.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
macro-on-cmdline.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
moc.pro Fix moc stumbling over gcc __attribute__ extensions 2012-10-01 14:27:14 +02:00
namespaced-flags.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
no-keywords.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
oldstyle-casts.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
os9-newlines.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
parse-boost.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
parse-defines.h Test case for moc handling defines 2012-09-25 00:08:16 +02:00
pure-virtual-signals.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qinvokable.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qprivateslots.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
single_function_keyword.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
slots-with-void-template.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
task87883.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
task189996.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
task192552.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
task234909.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
task240368.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
template-gtgt.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
trigraphs.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tst_moc.cpp Test case for moc handling defines 2012-09-25 00:08:16 +02:00
using-namespaces.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
warn-on-multiple-qobject-subclasses.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
warn-on-property-without-read.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
win-newlines.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00