qt5base-lts/tests/auto/tools/moc
Olivier Goffart 55659fb5a4 moc: Fix parsing of complex defines defined via command line
Since now in Qt5 the moc does full macro substitution, it needs to handle
the defines passed is command argument, even if they span over multiple
tokens, or if they do not have any token.

Example:
 moc '-DCOMPLEX=QVector<int>' '-DEMPTY=' foo.h

[ChangeLog][moc] Fixed passing -D of a macro defined to something more
complex than a single identifier.

Task-number: QTBUG-33668
Change-Id: Ie8131de215f1659a24af4778d52ee40cda19759f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
2014-01-17 01:36:37 +01:00
..
task71021 Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
Test.framework/Headers Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testproject Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01: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 Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
backslash-newlines.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
c-comments.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
cstyle-enums.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01: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 Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
dollars.h moc: Support the '$' character as an identifier 2013-03-02 12:58:18 +01:00
error-on-wrong-notify.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
escapes-in-string-literals.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
extraqualification.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
forgotten-qinterface.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
forward-declared-param.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
function-with-attributes.h moc: Don't stumble over MSVC __declspec. 2013-09-24 10:09:14 +02:00
gadgetwithnoenums.h Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
Header Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
interface-from-framework.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
interface-from-include.h moc: add unittest for --ignore-option-clashes 2013-07-30 09:36:25 +02:00
macro-on-cmdline.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
moc.pro moc: Fix parsing of complex defines defined via command line 2014-01-17 01:36:37 +01:00
namespaced-flags.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
no-keywords.h use qtconcurrent instead of qtgui in test code 2013-06-10 21:12:01 +02:00
oldstyle-casts.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
os9-newlines.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
parse-boost.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
parse-defines.h moc: Fix parsing of complex defines defined via command line 2014-01-17 01:36:37 +01:00
plugin_metadata.h moc: add -M<key=value> to ease static qml plugin linking 2013-09-13 11:48:08 +02:00
pp-dollar-signs.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
pure-virtual-signals.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qinvokable.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qprivateslots.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
single_function_keyword.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
single-quote-digit-separator-n3781.h Test that Qt tools can handle ' as a digit separator. 2013-10-30 09:44:07 +01:00
slots-with-void-template.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
task87883.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
task189996.h Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
task192552.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
task234909.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
task240368.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
template-gtgt.h Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
trigraphs.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
tst_moc.cpp moc: Fix parsing of complex defines defined via command line 2014-01-17 01:36:37 +01:00
unterminated-function-macro.h moc: Error out when detecting unterminated macro usage 2013-02-19 20:51:44 +01:00
using-namespaces.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
warn-on-multiple-qobject-subclasses.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
warn-on-property-without-read.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
win-newlines.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00