diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2025-03-31 16:27:06 +0200 |
|---|---|---|
| committer | Sami Shalayel <sami.shalayel@qt.io> | 2025-04-10 13:35:01 +0200 |
| commit | 051cabf584930a7805e4241d318047815234d49e (patch) | |
| tree | aff10897c754ee73340ef645f6dcd04bd2ca0b66 /src/qml/compiler/qv4compilerscanfunctions.cpp | |
| parent | 6dcd494cadfd9cb43a6980f4ff50a2a42eec604e (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
