News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

code completion with function prototypes

Started by jarro_2783, September 07, 2006, 01:18:51 PM

Previous topic - Next topic

jarro_2783

Whenever I start typing in parameters to a function it has a little box that pops out giving the function parameters, that is all good, that is what I would expect. But whenever it recognises the name of the variable I am typing in it tries to code complete the variable and forgets about the function parameters. So if I have 3 or 4 parameters they are lost forever after it attempts to complete the first one.
Another problem is it can't find some header files to check the function prototypes. Would it be possible to make it check all the directories and -I options specified in the project options when it sees an angle bracket include?

mandrav

QuoteWould it be possible to make it check all the directories and -I options specified in the project options when it sees an angle bracket include?

It sees what your project sees, through #includes. If you don't ever #include a file (directly or indirectly), it will not be parsed.
Be patient!
This bug will be fixed soon...

Alturin

He means, to give a list of possible include files when you typed:
"#include <"

tiwag

Quote from: mandrav on September 07, 2006, 02:34:16 PM
QuoteWould it be possible to make it check all the directories and -I options specified in the project options when it sees an angle bracket include?

It sees what your project sees, through #includes. If you don't ever #include a file (directly or indirectly), it will not be parsed.

are the include files "seen" , which are included by a compiler option like
  -include "wx_pch.h"
as used in the wx project wizards projects ?

if not, any plan to do so ?

mandrav

Quoteare the include files "seen" , which are included by a compiler option like

they 're seen no because it recognized the -include command, but because it's part of the project. Any file that is part of the project is "seen", no matter if it is #included by other files or not.

QuoteHe means, to give a list of possible include files when you typed:
"#include <"

This works (try it). But only for parsed files...
Be patient!
This bug will be fixed soon...

jarro_2783

#5
what I mean is say you install freetype in a non standard directory, you put "c:\freetype" into your project's directories, but ft2build.h isn't part of your project so it never gets parsed. Would it be possible to make it so that it does get parsed.
What about the thing about the disappearing prototype?

Quote
He means, to give a list of possible include files when you typed:
"#include <"

No I don't mean that, I mean for the <> includes can it search all the directories you specify and parse them so that everything in them is in the code completor.