diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-04-12 18:20:06 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-04-20 09:07:50 +0000 |
commit | 58bf8789242b0775d491c8969abae8f42f2bc32d (patch) | |
tree | bd3b3605e4f516eec37af673e790c754c61c9edf /tests | |
parent | 4e356cb519442bcb5c3c1bf690094e5edcf6676d (diff) |
lupdate: add support for c++17 nested namespaces
Task-number: QTBUG-63364
Started-by: Mateusz Starzycki <mstarzycki@gmail.com>
Change-Id: I492eecdc11a97d3cd8adc4caf6f20e536fc83bf7
Reviewed-by: Mateusz Starzycki <mstarzycki@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp | 16 | ||||
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp b/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp index 1bc1dc2a2..b6a002b2d 100644 --- a/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp +++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp/main.cpp @@ -655,3 +655,19 @@ QString unicodeEscape() { return QApplication::tr("Context", "soft\u00ADhyphen"); } + + + +// QTBUG-63364: C++17 nested namespaces +namespace Outer::Inner { + +class Class +{ + Q_OBJECT + void function() + { + tr("MoreFunStuff!"); + } +}; + +} diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result index c344667cf..e33c59bc6 100644 --- a/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result +++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.ts.result @@ -251,6 +251,14 @@ backslashed \ stuff.</source> </message> </context> <context> + <name>Outer::Inner::Class</name> + <message> + <location filename="main.cpp" line="669"/> + <source>MoreFunStuff!</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> <name>Plurals, QCoreApplication</name> <message numerus="yes"> <location filename="main.cpp" line="68"/> |