Community
Participate
Working Groups
Created attachment 191041 [details] CSourceHover specialization patch Example: template<typename T> class Iterator { }; template<typename T> class Array { public: typedef Iterator<T> iterator; template<class TIterator> TIterator erase(TIterator it) { } }; int main() { Array<int> foo; Array<int>::iterator it; foo.erase(it); } Try hovering on the last 'erase'.
Anton, does the patch look good to you?
Looks like it makes sense. And for extra +, maybe you could also combine both ifs into one?
Created attachment 191178 [details] CSourceHover specialization patch, ver 2 I combined the ifs. It does change the behavior slightly because now binding cannot become a IProblemBinding, but I think that's preferable anyway. Thank you for the review.
Fixed in HEAD.
*** cdt cvs genie on behalf of mlaperle *** Bug 339780 - Source hover for specialization of specialization does not work [*] CSourceHover.java 1.49 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java?root=Tools_Project&r1=1.48&r2=1.49