Author Topic: code completion with function prototypes  (Read 5828 times)

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
code completion with function prototypes
« 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: code completion with function prototypes
« Reply #1 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.
Be patient!
This bug will be fixed soon...

Alturin

  • Guest
Re: code completion with function prototypes
« Reply #2 on: September 07, 2006, 02:43:48 pm »
He means, to give a list of possible include files when you typed:
"#include <"

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: code completion with function prototypes
« Reply #3 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 ?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: code completion with function prototypes
« Reply #4 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...
Be patient!
This bug will be fixed soon...

Offline jarro_2783

  • Multiple posting newcomer
  • *
  • Posts: 99
    • Project Freedom
Re: code completion with function prototypes
« Reply #5 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.
« Last Edit: September 07, 2006, 11:45:13 pm by jarro_2783 »