Bug 360306 - Display size and alignment for typedefs
Summary: Display size and alignment for typedefs
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: git master
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-09 14:12 UTC by Alexander Potashev
Modified: 2016-03-09 14:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2016-03-09 14:12:23 UTC
KDevelop 5.x shows sizes of classes in tooltip when hovering their names. E.g. when I type in "typedef std::type_info x;" and hover "type_info", the tooltip says:
    size: 16 Bytes
    aligned to: 8 Bytes

But:
 1. The same info is how displayed when I hover "x" in the above line.
 2. There's no way to get the size of a class template instance because you can't trigger the hover event for the whole expression "std::vector<int>". Even if I write "typedef std::vector<int> vector_int;", the tooltip for vector_int does not have size/alignment information because it's a typedef.

Reproducible: Always
Comment 1 Alexander Potashev 2016-03-09 14:13:34 UTC
*"The same info is _not_ displayed when I hover "x" in the above line."
Comment 2 Kevin Funk 2016-03-09 14:23:44 UTC
@Alexandre: Something for you, maybe?