qt5base-lts/tests/auto/tools/moc
Simon Hausmann 9ab8c0ae98 Fix moc preprocessor-only mode with input that contains seemingly invalid identifiers
In WebKit we use moc -E to pre-process various files before throwing at
further build creation tools. The pre-processing is used to filter out
code depending in #ifdef'fed features.

The latest addition to the family of pre-processed files is the CSS grammar,
which is written in Bison. It contains rule lines like

   $$ = parser->createFoo()

and when pre-processing this moc stumbles over the dollar sign. Instead
of ignoring un-tokenizable input we should add it to the current token
if we're in preprocessor-only mode, otherwise the $$ gets eaten and we
produce data-loss by printing out less characters than.

Change-Id: Ib32e7c04b38dd2ba3726201e76f27405f7ea6c0d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-10-13 05:51:19 +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
pp-dollar-signs.h Fix moc preprocessor-only mode with input that contains seemingly invalid identifiers 2012-10-13 05:51:19 +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 Fix moc preprocessor-only mode with input that contains seemingly invalid identifiers 2012-10-13 05:51:19 +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