Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.7, 5.15.10, 6.2.1, 6.2.4
-
macOS 12.0, Windows 10
-
-
8b4dab1e4c (qt/tqtc-qttools/6.4) afbc20ed01 (qt/tqtc-qttools/dev) 8c60d2d288 (qt/tqtc-qttools/6.2) 18a38fe652 (qt/qttools/6.3) 18a38fe652 (qt/tqtc-qttools/6.3) 8c60d2d288 (qt/tqtc-qttools/6.2.5) 4b4f38d266 (qt/tqtc-qttools/5.15)
Description
In the following code, lupdate ignores tr().
const QString TestBackend::getSomeText() const noexcept { return tr("Some text to translate"); }
It works fine if 'noexcept' keyword is not defined.
A workaround is to explicitly define the class name like below
TestBackend::tr("Some text to translate")
Sample project is attached, qtbug99415-noexcept.zip .
Attachments
Issue Links
- relates to
-
QTBUG-42744 lupdate needs C++11 support
- Closed
-
QTBUG-104426 lupdate uses return type as context for free functions
- Closed
For Gerrit Dashboard: QTBUG-99415 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
417228,4 | lupdate: Allow multiple specifiers after method signature | dev | qt/qttools | Status: MERGED | +2 | 0 |
418188,2 | lupdate: Allow multiple specifiers after method signature | 6.4 | qt/qttools | Status: MERGED | +2 | 0 |
418189,4 | lupdate: Allow multiple specifiers after method signature | 6.3 | qt/qttools | Status: MERGED | +2 | 0 |
418194,4 | lupdate: Allow multiple specifiers after method signature | tqtc/lts-5.15 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |
418195,4 | lupdate: Allow multiple specifiers after method signature | tqtc/lts-6.2 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |