cancel complex constructs at end of #define
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Wed, 31 Jul 2013 14:22:10 +0000 (16:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 Aug 2013 07:30:31 +0000 (09:30 +0200)
commit6ada735ac09c4e07adc9f9b40ece76c59713390e
tree4c8c2d7510ae2565f6481a5d4a06e17f1d84c465
parentfe721e9fac2d8132b970d8b634fec3f53c20d3c6
cancel complex constructs at end of #define

it's possible that we encounter the end of a #define statement while in
the middle of a complex construct (which is part of a macro, obviously).
we should discard those, as otherwise Weird Things may happen.

Change-Id: Ie9608ad0215e105ab5e5bac110e4118029fa6c15
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/lupdate/cpp.cpp
tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp