QmlJS check: Extend "don't use var" performance warning.
* now also recognizes color, rect, point, size, vector3d
* to do detect these correctly, set the return types on a number of
builtin Qt.* functions
* add test
Change-Id: Ieaeb73be208af2d47e1bb4fa1485dc876705ee20
Reviewed-by:
Leandro Melo <leandro.melo@nokia.com>
Showing
- src/libs/qmljs/qmljscheck.cpp 13 additions, 2 deletionssrc/libs/qmljs/qmljscheck.cpp
- src/libs/qmljs/qmljsvalueowner.cpp 41 additions, 41 deletionssrc/libs/qmljs/qmljsvalueowner.cpp
- tests/auto/qml/codemodel/check/avoid-var.qml 20 additions, 0 deletionstests/auto/qml/codemodel/check/avoid-var.qml
- tests/auto/qml/codemodel/check/check.pro 1 addition, 0 deletionstests/auto/qml/codemodel/check/check.pro
- tests/auto/qml/codemodel/check/tst_check.cpp 4 additions, 2 deletionstests/auto/qml/codemodel/check/tst_check.cpp
Loading
Please register or sign in to comment