Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.13.2
Description
QtCreator does not always find usage references to a function. C++14 return type deduction especially seems to confuse it.
Here's simple C++14 code where QtCreator does not find reference to Test::test() in line 22.
Clang code model is in use.
Code completion works ok in line 22 too.
#include <iostream> using namespace std; class Test { public: void test() { cout << "test" << endl; } }; auto f() { return new Test(); } int main() { auto p = f(); p->test (); // this reference to Test::test() is not detected return 0; }
Attachments
Issue Links
- relates to
-
QTCREATORBUG-15364 QtCreator doesn't find usages for auto variables
- Closed