Bug 369842 - wrong tooltip shows up for complex types declared with decltype
Summary: wrong tooltip shows up for complex types declared with decltype
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: git master
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-03 21:14 UTC by Radu Benea
Modified: 2016-11-29 07:39 UTC (History)
1 user (show)

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 Radu Benea 2016-10-03 21:14:13 UTC
when the expression in decltype does not result in a simple type the entire expression is shown as type instead of the deduced one

Reproducible: Always

Steps to Reproduce:
1. open a c++ file
2. paste simple code sample:
struct N { int a; };
struct M { N z; };
decltype(M::z) i;
3. hover over i

Actual Results:  
tooltip says type of i is decltype(M::z)

Expected Results:  
tooltip should say type of i is N

code completion works for the wrongly showed type

a second sample of code for something more complex:
#include <vector>
decltype(std::declval<std::vector<char>>().begin()) x;
Comment 1 Kevin Funk 2016-11-29 07:39:25 UTC
Confirmed.