diff options
author | Przemyslaw Gorszkowski <pgorszkowski@gmail.com> | 2014-12-02 10:57:08 +0100 |
---|---|---|
committer | Przemyslaw Gorszkowski <pgorszkowski@gmail.com> | 2015-01-14 08:10:58 +0100 |
commit | 9e159d87a8e9c5eb324f69bad1ef628e990cd393 (patch) | |
tree | 5e486e2454eb20bee37646565c6126a62a5fb071 /src/plugins/cpptools/cpppointerdeclarationformatter.cpp | |
parent | f66ee66595a13a6de9343239d5af990b7f4f209f (diff) | |
download | qt-creator-9e159d87a8e9c5eb324f69bad1ef628e990cd393.tar.gz |
C++: display enum value in tooltip for simplest case
If it is possible lets calculate enum value for the simplest case.
Example where it works:
enum
{
enum_val1, // tooltip = "enum_val1 = 0"
enum_val2 // tooltip = "enum_val2 = 1"
};
enum
{
enum_val1=10, // tooltip = "enum_val1 = 10"
enum_val2 // tooltip = "enum_val2 = 11"
};
enum
{
enum_val1, // tooltip = "enum_val1 = 0"
enum_val2=10, // tooltip = "enum_val2 = 10"
enum_val3 // tooltip = "enum_val3 = 11"
};
Example where it does not work:
enum
{
enum_val1=10+1, // tooltip = "enum_val1 = 10+1"
enum_val2 // tooltip = "enum_val2"
};
Task-number: QTCREATORBUG-4529
Change-Id: Idd85ed7304018f73f2b068bf1ac28f1abde02f93
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter.cpp')
0 files changed, 0 insertions, 0 deletions