Bug 434984 - size of referances in tooltip may not be correct (point of view)
Summary: size of referances in tooltip may not be correct (point of view)
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: 5.5.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-26 15:52 UTC by Alexandre Martins
Modified: 2021-03-26 15:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Martins 2021-03-26 15:52:00 UTC
SUMMARY

In a structure, is I point a referance member, the size information show me the size of the referanced structure, not the size of the referance itself.

STEPS TO REPRODUCE

1. Use this example in a cpp file:

struct test
{
  char buff[1024];
};

struct test2
{
  test &data1; // show size 1024
  test *data2; // show size 8
};

EXPECTED RESULT

In my point of view, I expect the "true" size of the member, so 8 in both pointer and referance cases.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:  Kubuntu 20.10 / Linux 5.8.0-45
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2