Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
Qt Creator 4.5.0-beta1
Description
In the following code block
struct TestStruct { int test; }; void TestFn() { TestStruct a = TestStruct{}; auto b = a; int x = b.test; auto c = TestStruct{1}; x = c.test; auto d = TestStruct(); x = d.test; }
Find usages only finds usages of test from b and d. c is not found. This is a little strange as the refactor tool still gets it.
This is a problem with the clang code model and the regular code model.