diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-29 14:33:40 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-29 14:47:43 (GMT) |
commit | 7258ad9817ae811808ea89c790b059474d145654 (patch) | |
tree | 8f6777026e5aa7b35942c14cee1322484229a9cd /tools/linguist/lupdate | |
parent | f08b60f4ca52d525c1dc9890cb0c6661ee34b069 (diff) | |
download | Qt-7258ad9817ae811808ea89c790b059474d145654.zip Qt-7258ad9817ae811808ea89c790b059474d145654.tar.gz Qt-7258ad9817ae811808ea89c790b059474d145654.tar.bz2 |
warn about stray meta data
Diffstat (limited to 'tools/linguist/lupdate')
-rw-r--r-- | tools/linguist/lupdate/cpp.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/linguist/lupdate/cpp.cpp b/tools/linguist/lupdate/cpp.cpp index 25e162f..609bd3d 100644 --- a/tools/linguist/lupdate/cpp.cpp +++ b/tools/linguist/lupdate/cpp.cpp @@ -2081,10 +2081,13 @@ void CppParser::parseInternal(ConversionData &cd, QSet<QString> &inclusions) case Tok_Semicolon: prospectiveContext.clear(); prefix.clear(); - sourcetext.clear(); - extracomment.clear(); - msgid.clear(); - extra.clear(); + if (!sourcetext.isEmpty() || !extracomment.isEmpty() || !msgid.isEmpty() || !extra.isEmpty()) { + yyMsg() << "Discarding unconsumed meta data\n"; + sourcetext.clear(); + extracomment.clear(); + msgid.clear(); + extra.clear(); + } yyTokColonSeen = false; yyTok = getToken(); break; |