summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lupdate/testdata/good/tr_function_alias/lupdatecmd
Commit message (Collapse)AuthorAgeFilesLines
* lupdate/clang: Adapt test for alias functionLucie GĂ©rard2021-07-161-1/+1
| | | | | | | | | Make it compilable and do not skip the test anymore. lupdate run on a .pro file in order to have the include path listed in the compile_commands.json Change-Id: I9b87086532a38d6fa298e0048445bd474c519de6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add support for translation function aliases that are member expressionsSimon Hausmann2018-03-291-1/+1
| | | | | | | | | | | | | When traversing the AST for call expressions, it may happen that the base of the call expression is a field member expression instead of a plain identifier. For example with CustomTranslator.myTr() the base is a field member, with an identifier as base and myTr as name. We can construct a qualified name from that quite easily and this way support qualified tr aliases in qml files. Task-number: QTBUG-67278 Change-Id: I106243d8eed6d8cec75819a44942cf750de2829a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* lupdate: allow to configure names of tr()-like functionsMarc Mutz2013-04-091-0/+1
This makes it possible to use lupdate in projects that would like to wrap the tr()-like functions with their own versions, e.g. to add error checking or other instrumentation code. While we're at it, also simplify the c++ parsing with partly table-driven code. Change-Id: I72af68afa851a46342e75dcdd3dd58f4c14276b8 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>