Function argument tooltips for std constructors

General questions regarding the usage of CodeLite
drauthev
CodeLite Curious
Posts: 2
Joined: Fri Apr 10, 2015 5:25 am
Genuine User: Yes
IDE Question: C++
Contact:

Function argument tooltips for std constructors

Post by drauthev »

Do you guys know why tooltips for std types' constuctors are not showing up?

For eg, if I type in the following, I get no tooltips, even if I hit Ctrl+Shift+Space:

Code: Select all

std::ifstream ifs();
Code completion works otherwise, like "ifs." brings up ifstream's member functions list, "ifs.read()" brings up argument tooltip for read(), etc.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Function argument tooltips for std constructors

Post by eranif »

Its probably because std::ifstream is a typedef

Eran
Make sure you have read the HOW TO POST thread
drauthev
CodeLite Curious
Posts: 2
Joined: Fri Apr 10, 2015 5:25 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Function argument tooltips for std constructors

Post by drauthev »

And what's the reason behind that? A typedef should be transparent I think.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Function argument tooltips for std constructors

Post by eranif »

drauthev wrote:And what's the reason behind that? A typedef should be transparent I think.
If you are a compiler than yes, its transparent.

If you are hand crafted parser, thats another story then...
The answer is simple: the parser does not support this at this time.

PR are welcome to fix this

Eran
Make sure you have read the HOW TO POST thread
Post Reply