Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368518

Summary: Source Hover should declaration comment instead of definition comment
Product: [Tools] CDT Reporter: Lukas Felber <l.felber>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, QQ510371827, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Lukas Felber CLA 2012-01-13 04:12:37 EST
Build Identifier: I20110613-1736

The CSourceHover prefers definitions over declarations (which is good -> can see implementations/content -> more information). However, if one document a class, the comment of a member-function goes with the member-function's declaration and not with the definition. If I hover over a call to that member-function, I can see the definition including its comment.

It would, however, make much more sense to see, alongside the content of the member function (that is already there), the comment of the declaration (coming from the header) since that is the place where one documents member-functions.

Reproducible: Always