This screenshots shows that KDevelop can guess the type of an object accurately even in a complex scenario.
More information about formatting options
KDevelop 4.5.2May 30, 2013 (KDE 4.7 or higher)
KDevelop 4.4.1Aug 11, 2012 (KDE 4.5)KDevelop 4.1.2Jan 14, 2011 (KDE 4.4)
Learn to use KDevelop: