I am using C::B build 5382 on Windows XP SP3. While writing a program yesterday, I found 3 (possible) bugs :
1. Incorrect data-type tool-tipWhen I hover mouse over
some variables, C::B displays the data-type of that variable in a tool-tip. But I hover mouse over some others, it shows some weird stuff along with data-type. To be specific, I have marked that C::B gets confused about the data-type when I use prefix increments( ++C ). For example :
/* Line 1 */ #include <stdio.h>
/* Line 2 */ int main()
/* Line 3 */ {
/* Line 4 */ int x, y, z;
/* Line 5 */ scanf("%d %d",&x,&y);
/* Line 6 */ ++x;
/* Line 7 */ --x;
/* Line 8 */ z = x*y;
/* Line 9 */ return 0;
/* Line 10 */ }
>> Hovering on 'x' in Line 6 shows "x : int".
>> Hovering on 'x' in Line 7 shows "x : int" and "x : + +".
>> Hovering on 'x' in Line 8 shows "x : int" , "x : + +" and "x : - -".
Another code:
/* Line 1 */ #include <stdio.h>
/* Line 2 */ int main()
/* Line 3 */ {
/* Line 4 */ char A, *B, C;
/* Line 5 */ C = 'C';
/* Line 6 */ A = 'A';
/* Line 7 */ B = &C;
/* Line 8 */ A = *B;
/* Line 9 */ return 0;
/* Line 10 */ }
>> Hovering mouse on 'A' shows "A : char"
>> Hovering mouse on 'C' shows "C : char *".
2. C::B cannot find Implementations and Declarations[ NOT SURE IF THIS IS A BUG, OR SOMETHING IS WRONG WITH MY CONFIG ]
When I right-click on a variable or function or class or anything and select "Find implementation of : xyz" or "Find declaration of : xyz"; I get the error "Not found:xyz".
3. Problem with Implementation and Declaration of main()A strange thing that I marked was, I just right-clicked the 'main' function and then selected "Find declaration of : main" and then C::B opened my last opened C++ file and pointed to the main function of that file !!!!
When I right-clicked the main function in that file and selected "Find implementation of : main"; I was brought back to the previous file !!
When I right-clicked the main function of the present file and selected "Find implementation of : main"; C::B just pointed to the main of the current file .
I was really confused and thought I should report it at this forum.