Commit 6fed7752 authored by Fawzi Mohamed's avatar Fawzi Mohamed Committed by Fawzi Mohamed

qmljs: do not warn for QT_TR* functions

Change-Id: If5cf78434458ae639b4ebd0cb156110b5a291613
Task-number: QTCREATORBUG-12494
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent ab4edad6
......@@ -1557,7 +1557,10 @@ bool Check::visit(CallExpression *ast)
&& name != QLatin1String("Boolean")
&& name != QLatin1String("Date")
&& name != QLatin1String("Number")
&& name != QLatin1String("Object")) {
&& name != QLatin1String("Object")
&& name != QLatin1String("QT_TR_NOOP")
&& name != QLatin1String("QT_TRANSLATE_NOOP")
&& name != QLatin1String("QT_TRID_NOOP")) {
addMessage(WarnExpectedNewWithUppercaseFunction, location);
}
if (cast<IdentifierExpression *>(ast->base) && name == QLatin1String("eval"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment