aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compilerscanfunctions.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2025-03-31 16:27:06 +0200
committerSami Shalayel <sami.shalayel@qt.io>2025-04-10 13:35:01 +0200
commit051cabf584930a7805e4241d318047815234d49e (patch)
treeaff10897c754ee73340ef645f6dcd04bd2ca0b66 /src/qml/compiler/qv4compilerscanfunctions.cpp
parent6dcd494cadfd9cb43a6980f4ff50a2a42eec604e (diff)
qmllint: enhance var-used-before-declaration warning
It doesn't really make sense to print out the location of the variable declaration, especially in the language server. Instead, emit two warnings: one at the declaration and one at the usage. This makes it easier for users to spot the location of the declaration. Add a test to make sure that both warnings can be disabled with one disabling directive. Task-number: QTBUG-129307 Change-Id: Icb485ee37f016f18395c3016672e397c4f5e6024 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
0 files changed, 0 insertions, 0 deletions