Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 2.8.1
-
None
-
07f8c474be629de75780d235df62a50ae6f27870
Description
If an objects defines operator->() (like all smart pointer do), and it is used to dereference inner object, Follow Symbol Under Cursor (F2) does not point to right point.
For example try to press F2 on "run" part of a->run(); in the code below:
#include <iostream>
#include <memory>
class A {
public:
void run()
};
int main()
{
std::unique_ptr<A> a(new A);
a->run();
}
Attachments
Issue Links
- relates to
-
QTCREATORBUG-8937 Code Completion can not support std::unique_ptr
- Closed