Page 1 of 1

Function argument tooltips for std constructors

Posted: Fri Apr 10, 2015 5:47 am
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.

Re: Function argument tooltips for std constructors

Posted: Fri Apr 10, 2015 10:10 am
by eranif
Its probably because std::ifstream is a typedef

Eran

Re: Function argument tooltips for std constructors

Posted: Mon Apr 13, 2015 1:04 am
by drauthev
And what's the reason behind that? A typedef should be transparent I think.

Re: Function argument tooltips for std constructors

Posted: Mon Apr 13, 2015 8:32 am
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