Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
Qt Creator 3.1.0-rc1
-
Windows 7 64 bit
Qt 5.2.1
Description
- Enable the clang code model.
- In a source file, include QDebug:
#include <QDebug>
- In some function in that file, add the line:
qDebug() << "Failed";
It will become underlined although the code is valid and can be compiled. Hovering it shows the tooltip:
- Close and reopen the file.
The underlines are gone. - Edit something in the file.
The underlines are back.
The code model should not underline valid code. If it finds a real problem, the underline should not be gone after reopening a file.
Creator's built-in code model does not complain about this line.