Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
Qt Creator 4.0.0-beta1, Qt Creator 4.6.0-beta1
-
Windows 7, clang 3.6.2 C++ code model
-
40173ad4ab86f0a49d0bb091f654bdf7220931f5 (qt-creator/qt-creator/master)
Description
Given the code
#include <iostream> #include <QSharedPointer> class Foobar { public: int foo; }; void testFoobar() { QSharedPointer<Foobar> f(new Foobar); f->foo = 20; std::cout << __FUNCTION__ << ": " << f->foo << std::endl; } void testFoobarAuto() { auto f = QSharedPointer<Foobar>(new Foobar); f->foo = 30; std::cout << __FUNCTION__ << ": " << f->foo << std::endl; } int main() { testFoobar(); testFoobarAuto(); return 0; }
Find references for Foobar::foo doesn't present the results from testFoobarAuto() function.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-17826 C++11 auto keyword auto-complete does not work
- Closed
-
QTCREATORBUG-24915 QtCreator doesn't find reference to a function
- Closed
-
QTCREATORBUG-12659 Contextual help/auto-complete not working with C++11 auto keyword
- Closed
- replaces
-
QTCREATORBUG-17111 Indexing for C++11 types (auto, smart pointers)
- Closed