qt5base-lts/tests/auto/tools/moc
Matthew Vogt 5bb1408927 Allow moc to handle symbols that have been redefined.
Allow moc to produce the desired identifiers when used with C++
symbol names that have been redefined, for example by -Dfoo=bar.

Two changes are required: firstly, when encoding a type name, the
components of the name must be checked for substitutions that have been
defined for that token (note that this is not done here by correct
pre-processing, but only by processing the resultant table of
definitions).  Secondly, the arguments to the SIGNAL, SLOT and METHOD
macros must be allowed to be substituted during macro expansion rather
than stringized directly.

This is a temporary change to prevent breaking existing projects
that depend on the declarative module.  After clients have had an
opportunity to update their code to the use the new interfaces,
it can be removed.

Task-number: QTBUG-23737
Change-Id: I39e6844cebf6ca7984af6028160b8a3797ac44a5
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2012-02-27 00:18:53 +01:00
..
task71021 Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
Test.framework/Headers Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
testproject Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +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 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
backslash-newlines.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
c-comments.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
cstyle-enums.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
cxx11-enums.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
dir-in-include-path.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
error-on-wrong-notify.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
escapes-in-string-literals.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
extraqualification.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
forgotten-qinterface.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
gadgetwithnoenums.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
Header Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
interface-from-framework.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macro-on-cmdline.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
moc.pro moc: support c++11 style enums 2011-10-29 21:18:45 +02:00
namespaced-flags.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
no-keywords.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
oldstyle-casts.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
os9-newlines.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
parse-boost.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
pure-virtual-signals.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qinvokable.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qprivateslots.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
single_function_keyword.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
slots-with-void-template.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task87883.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task189996.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task192552.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task234909.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task240368.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
template-gtgt.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
trigraphs.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
tst_moc.cpp Allow moc to handle symbols that have been redefined. 2012-02-27 00:18:53 +01:00
using-namespaces.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
warn-on-multiple-qobject-subclasses.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
warn-on-property-without-read.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
win-newlines.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00