avoid false positives when looking for magic comments
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Thu, 1 Aug 2013 10:05:47 +0000 (12:05 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 Aug 2013 07:30:36 +0000 (09:30 +0200)
commita4e8dca0c3665a26ff5e7dffada97aeab86dd1a5
treeb3d7c20c44f40ccc018dc6f33ff1b4f443f3cffd
parent9577e0134f6999f7e4f569344982f071e9cc37ff
avoid false positives when looking for magic comments

expect meta data only at the beginning of statements.

this required syntax fixes in some unrelated autotests.

Task-number: QTBUG-11866
Change-Id: Ic0c0c150ac8648df6953a510b8eb0c199c8d3ae2
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/multiple_locations/finddialog.cpp
tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp
tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp
tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result