ignore bracketed expressions only outside function scope
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Tue, 30 Jul 2013 10:05:31 +0000 (12:05 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 1 Aug 2013 11:36:59 +0000 (13:36 +0200)
commit1c7d9a533509d510047c1ff4045e88262139c6aa
treed5a100890bd4390054999ffb810776bed7774bc3
parent829f6489daf357bb5d63a89d1f808d3d72e43263
ignore bracketed expressions only outside function scope

static initializers obviously cannot appear in scopes, so there is no
reason to suppress parsing tr() statements used for indexing inside
functions.

Task-number: QTBUG-29998
Change-Id: I3a0330e1382cd5a74106328ae6722a02af282f7f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/linguist/lupdate/cpp.cpp
tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp
tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result