Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
Qt Creator 3.6.0, Qt Creator 4.0.0, Qt Creator 4.1.0, Qt Creator 4.2.0, Qt Creator 4.3.0
-
None
Description
Declaring a function in a header such as:
void f(int x);
And defining it in a cpp file as:
void f(const int x) {}
Makes the clang code model lost. "Switching between declaration/definition" doesn't work. "Follow symbol under cursor" works from definition to declaration but not the other way around.
This problem does not impact the Qt Creator old code model.
This is valid C++ code and commonly used to tell the compiler that the copy of x will not be modified, without overwhelming the API user with implementation details.
Thank you,
Ben.
Attachments
For Gerrit Dashboard: QTCREATORBUG-18475 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
199227,4 | C++: fix lookups for functions with const args | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |