Consider the following bit of code: auto* foo = new QWidget(); This is perfectly valid code, with 'foo' having the type 'QWdiget*'. Alas, KDevelop is very confused and thinks the type of 'foo' is 'int*'. If the '*' in the declaration is omitted (also legal, and does not change the type of 'foo'), KDevelop correctly deduces the type. Reproducible: Always
Git commit 881436b6620a9948f53be6590919791ac18195af by Milian Wolff. Committed on 20/06/2014 at 22:21. Pushed by mwolff into branch 'master'. C++11: properly support "auto* v = ..." syntax. M +22 -1 languages/cpp/cppduchain/tests/test_duchain_cpp2011.cpp M +3 -2 languages/cpp/cppduchain/typebuilder.cpp http://commits.kde.org/kdevelop/881436b6620a9948f53be6590919791ac18195af
Awesome; thanks Milian!