qt5base-lts/tests/auto/tools
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
..
moc Fix moc preprocessor-only mode with input that contains seemingly invalid identifiers 2012-10-13 05:51:19 +02:00
qdbuscpp2xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdbusxml2cpp Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qmake Use jom in tst_qmake. 2012-10-08 08:46:21 +02:00
rcc Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
uic Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tools.pro Add unit testing for the qdbusxml2cpp tool 2012-04-21 01:18:56 +02:00