Bug 67458

Summary: No code completion on typecasts
Product: [Applications] kdevelop Reporter: Torben H. Nielsen <torben.nielsen>
Component: Code completionAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Torben H. Nielsen 2003-11-07 00:04:33 UTC
Version:           cvs HEAD (using KDE KDE 3.1.3)
Installed from:    Compiled From Sources

it would be nice if the code completion worked on type casts like this one:

dynamic_cast<ChildClass*>(parentPointer)->
Comment 1 Andreas Pakulat 2006-12-30 16:11:18 UTC
Still not supported and I don't think it will be, as this would mean we'd have to do runtime-type-checking.
Comment 2 Jens Dagerbo 2006-12-30 16:24:56 UTC
No, it should be enough to simply interpret the cast, it's not our problem if it's wrong.

That said, you obviously never should do dynamic_cast<>()->something(), so the example is a bit silly. Still valid for static_cast<> and C-style casts though.
Comment 3 Andreas Pakulat 2008-06-29 16:53:19 UTC
done in kdev4