Correctly expand macros without arguments in moc
authorLars Knoll <lars.knoll@nokia.com>
Fri, 7 Sep 2012 13:13:03 +0000 (15:13 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 22:08:16 +0000 (00:08 +0200)
commit34a3b63dc7d3b09342647537d378f5a55d0c81f0
treeb467550408d47d40c40e640ccb20f1cc779cb202
parent0077b1e3a07cc3ea49fde3f938d59b44579f043d
Correctly expand macros without arguments in moc

This helps e.g. cases where a namespace is defined
through a macro and moc doesn't see it at all.

Expanding macros with arguments is significantly more
work, and should happen in a separate commit.

Change-Id: Ic8d0443d06fab2ed343115d8c43022f2c67ec3cd
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/tools/moc/preprocessor.cpp
src/tools/moc/preprocessor.h