qt5base-lts/tests/auto/tools
Olivier Goffart 208e9a2757 moc: recover bad template parsing.
When encountering code such as:
  X<a<b>
moc does not have the mean to know if 'a' is a type or a variable, so the
type parser currently assume that '<' always open a template parameter.
(instead of being the operator<)

The type parser do not care about the actual type, it just need to strip
the string out. The problem is that then the whole rest of the file will
be considered as the type.

With this patch, we also stop the parsing at semicolon.  The type will
be wrong, but this allow the parser to recover and it will continue to
look for more classes after this.

(In other words, moc will no longer break if it encounter such construct
in a header. But it will still not parse such types correctly if used
within a Q_OBJECT class)

Task-number: QTBUG-31218

Change-Id: I1fef6bc58493d7c00df72401c9ad55463b24eaa7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-05-20 10:06:04 +02:00
..
moc moc: recover bad template parsing. 2013-05-20 10:06:04 +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 Don't run qmake test that requires macx makespec on non Mac OS platforms 2013-02-20 00:46:50 +01:00
rcc Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
uic Fix module name format in displayed code 2013-02-11 01:43:21 +01:00
tools.pro test: Disable tst_uic when -no-widgets is used 2013-04-22 16:24:44 +02:00