Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.8.0, Qt Creator 4.9.0-beta1
-
None
-
x86-64 Ubuntu 04.18 Linux
clang 6.0.0-1ubuntu2
cmake
-
-
bcf900e29b6ceeb475e11881d5015055db0116f9 (qt-creator/qt-creator/master)
Description
Let's say you have a code like:
struct
{
int a;
}*x;
x->a + x->a;
If you change 'x' for pointer to struct to simple variable, like:
struct
{
int a;
}x; // change here
x->a + x->a;
The IDE will warn you of 2 Semantic Issues. If you click on offered solutions from the dropdown menu that appears when you hover your mouse over the red circle on the left of the line number, this might happen:
struct
{
int a;
}x; // change here
x.a + x-.; // problem here
This only happens when you click the problem from top to down (so to solve the leftmost occurrence first). This is not happening when you click on the individual solution proposals that appear when you hover the mouse over the actual code, so not on the red circle.
Attachments
For Gerrit Dashboard: QTCREATORBUG-21818 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
322938,2 | ClangCodeModel: Prevent outdated fix-its from getting applied | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |