Bug 454073 - template function definition not shown upon mouse hovering
Summary: template function definition not shown upon mouse hovering
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.5   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 22:00 EST by Bing-Yi Wong CLA
Modified: 2020-09-04 15:21 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bing-Yi Wong CLA 2014-12-03 22:00:19 EST
Given the following code:

template <class T>
void foo(T*) {}
void goo() {}
template <class T>
class A {
    void bar(T *t) {foo(t); goo();}
};


When mouse hovers on foo(t) in bar(), eclipse does not show foo(T*)'s definition.  I expect the behavior would be like mouse hovering goo() in bar().

But, if I Ctrl-click on foo(t), the cursor can go to foo(T*)'s definition correctly.