Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jarro_2783 on September 07, 2006, 01:18:51 pm

Title: code completion with function prototypes
Post by: jarro_2783 on September 07, 2006, 01:18:51 pm
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?
Title: Re: code completion with function prototypes
Post by: mandrav on September 07, 2006, 02:34:16 pm
Quote
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?

It sees what your project sees, through #includes. If you don't ever #include a file (directly or indirectly), it will not be parsed.
Title: Re: code completion with function prototypes
Post by: Alturin on September 07, 2006, 02:43:48 pm
He means, to give a list of possible include files when you typed:
"#include <"
Title: Re: code completion with function prototypes
Post by: tiwag on September 07, 2006, 03:12:47 pm
Quote
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?

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
Code
  -include "wx_pch.h"
as used in the wx project wizards projects ?

if not, any plan to do so ?
Title: Re: code completion with function prototypes
Post by: mandrav on September 07, 2006, 03:46:27 pm
Quote
are 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.

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

This works (try it). But only for parsed files...
Title: Re: code completion with function prototypes
Post by: jarro_2783 on September 07, 2006, 11:43:08 pm
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.