Bug 368518 - Source Hover should declaration comment instead of definition comment
Summary: Source Hover should declaration comment instead of definition comment
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 04:12 EST by Lukas Felber CLA
Modified: 2020-09-04 15:19 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 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