Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.6.1, Qt Creator 4.3.0
-
None
-
Ubuntu 14.04 x86_64.
-
163d5c5ce87b4ac7dcdb7dab001538a5240ab6ef (qt-creator/qt-creator/master) 6f8cbb6fd296f62fcbe369eeb742457417ed49d0 (qt-creator/qt-creator/4.10)
Description
Consider the example C++ code:
enum Test { A, B, C } test=A; int main() { switch(test) { case A: case B: ; } }
When compiled with <pre>-Wall</pre>, it emits two lines, one of which is context, and the other is actual warning. QtCreator shows both lines in the Issues list, the warning one has "!" in a triangle.
But the button which opens the Issues list looks like "1 Issues(2)". It appears that the circled "2" there means number of lines. But when you look at the button with the Issue list closed, it's easy to start thinking that there are two issues while actually there's only one — the warning emitted. This becomes even harder to understand when the issue reported is nested in several headers, for each of which the compiler emits additional line of context before saying "warning:". Then you have lots of lines even when there are few warnings/errors.
It seems the "1 Issues" button should show number of issues (warnings or errors), not lines of compiler output.
Attachments
For Gerrit Dashboard: QTCREATORBUG-18490 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
267155,2 | Issues pane: Show the right number of issues on the pane button | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
267166,2 | Issues pane: Show the right number of issues on the pane button | 4.10 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |