Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
949bb0e67bbf6e7d8208dad9876382ef8ce5eb59 (qt-creator/qt-creator/master)
Description
Alot of bugs are due to sizeof misuse. for ex. if intention is to get size of struct, but missing & character(when variable is pointer of the struct), then sizeof will return pointer size instead.
A way to try to minimize those bugs is qtcreator to have feature that will calculate(get info from clang parser) evaluated size in bytes and show them in tooltip.
For ex:
Now when I hover over 'sizeof(int) it shows 'Unsigned long (with F1 icon)'
and it can be improved with: 'Unsigned long(evaluated size is 4 bytes) (with F1 icon)'
Attachments
For Gerrit Dashboard: QTCREATORBUG-23967 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
301095,3 | ClangCodeModel: Show value in tool tips, if possible | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |