The following code: auto *foo = new QObject(); will make KDevelop think that foo is of type int, instead of QObject*. Reproducible: Always
Created attachment 98531 [details] The object instance is interpreted correctly 1. Followed the steps mentioned in the issue. 2. Created a class QObject. In the main, instantiated auto as an object of the class type. 3. The object instance is interpreted correctly by kdevelop, as the object of the class type. 4. Kdevelop does not interpret it as an int.
Created attachment 98532 [details] Object instance interpreted correctly 1. Followed the steps mentioned in the issue. 2. Created a class QObject. In the main, instantiated auto as an object of the class type. 3. The object instance is interpreted correctly by kdevelop, as the object of the class type. 4. Kdevelop does not interpret it as an int.
Thanks!