Bug 369840 - kdevelop drops modifiers for types declared using decltype
Summary: kdevelop drops modifiers for types declared using 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:03 UTC by Radu Benea
Modified: 2017-06-28 12:38 UTC (History)
2 users (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: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.