Bug 369840

Summary: kdevelop drops modifiers for types declared using decltype
Product: [Applications] kdevelop Reporter: Radu Benea <kitanatahu>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: anton, nalvarez
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Radu Benea 2016-10-03 21:03:52 UTC
type modifiers are lost for any int type (long, short, unsigned, etc.)
also happens to long double
also happens with char

auto is also influenced by this

Reproducible: Always

Steps to Reproduce:
1. Open a c++ file
2. simple test case to put in
#include <sys/epoll.h>
decltype(epoll_event::events) i;
3. hover over i

Actual Results:  
tooltip says type of i is int

Expected Results:  
tooltip says type of i is the same as epoll_event::events (uint32_t here, which is unsigned int)
Comment 1 Nicolás Alvarez 2016-11-30 02:22:13 UTC
This seems to affect auto too:

unsigned long int x;
auto y = x;

The tooltip for y says 'int', dropping the 'unsigned' and 'long' modifiers.