Bug #14503 2008-09-15 14:00
gd_on
CodeCompletion small bug
if in a C program, inside a function, you start a line by ///* CodeCompletion does not seem to see the following functions. No problems if the line start with //*.
ex:
int test(int a)
{
......
}
int test2(int b)
{
///* test
....
}
int test3(int c)
{
...
}
here, test3 is not seen by CodeCompletion
Normally ///* should be considered as a comment line exactly as // or //*
- Category
- Plugin::CodeCompletion
- Group
- Status
- Closed
- Close date
- 2010-10-15 13:08
- Assigned to
- loaden
History
I tried to reproduce it, but my code completion was still working.
Can you provide a compilable source file that will reproduce the behavior?
Also, the version of Code::Blocks you are using may be helpful.
I'm on windows XP SP3. My code::block version is SVN 5208 (but it's the same with 5200). It's also the same with the last "official" version, 5195 dowloaded from berlios site.
Here a small code, a little bit more developed than the previous one :
#include <stdio.h>
#include <stdlib.h>
int test(int a)
{
return 0;
}
int test2(int b)
{
///* test
return 0;
}
int test3(int c)
{
return 0;
}
int main()
{
int i,j;
i=0 ;
printf("Hello world!\n");
j = test(i);
j = test2(i);
j = test3(i);
return 0;
}
It's simply an hello program and test, test2 or tes3 are dummy functions doing nothing. In the top window, CodeCompletion displays test and test2, but does not display test3 nor main.
I don't remember when this problem appeared for the first time.
gd_on
It can be solved, see the discussion on
http://forums.codeblocks.org/index.php/topic,10224.msg70765.html#msg70765
This bug is now fixed in HEAD.
Thank you for reporting it.