qt5base-lts/tests/auto
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
..
android Fix Qt tests for Android. 2013-04-03 10:15:40 +02:00
bic/data Get rid of this hack where QAccessible inherits from QObject. 2013-04-26 23:27:18 +02:00
cmake Only expect EGL libraries in the cmake files if Qt is configured to use it. 2013-05-07 22:43:14 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:25 +01:00
corelib Make QFlags enum flags (C++11 strict enums) friendly 2013-05-09 12:17:59 +02:00
dbus Fix wildcard signal disconnection in QDBusAbstractInterface 2013-03-19 07:03:25 +01:00
gui Rename Numpad to Num, ensure Numpad is translated in all cases on Mac. 2013-05-10 09:10:45 +02:00
guiapplauncher
network Autotest: Use the new test zone in all name-lookup unit tests 2013-05-07 02:53:50 +02:00
opengl Merge branch 'dev' into stable 2013-03-20 13:49:28 +01:00
other Do not include the treeview header if its hidden 2013-04-25 17:56:26 +02:00
printsupport QPagedPaintDevice: Fix setPageSize() to set correct metrics 2013-04-12 11:46:01 +02:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Cleanup the SQL tests 2013-04-25 19:59:16 +02:00
testlib QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
tools moc: recover bad template parsing. 2013-05-20 10:06:04 +02:00
widgets QtWidgets: avoid integer divide by zero in QProgressDialog 2013-05-15 05:06:15 +02:00
xml QtXml tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:48 +01:00
auto.pro Check for printsupport module when building according auto tests 2013-02-19 19:20:58 +01:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00