Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.6.0-rc1
Description
Invalid code as the following might lead to this.
Case 1
case1.cpp
void f()
{
}
struct Foo {
// The following line and everything above will be underlined in red.
bla;
};
Case 2
case2.cpp
template <typename T> struct QForeachContainer { QForeachContainer(const T&) {} }; void f() { // The following line and everything above will be underlined in red. for (QForeachContainer<__typeof__(v.x)> container(v.x); true; ) return; }
Replacing the second v.x with e.g. v only underlines one line. Same if the "templateness" is removed of this example.
Attachments
Issue Links
For Gerrit Dashboard: QTCREATORBUG-15272 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
139661,3 | Clang: Filter out invalid diagnostic ranges | 3.6 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |