This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In code completion on windows I not found many of function from "stdio.h". I think because parser fails on "char * __cdecl func();" expression. Sample from Cygwin: #define _EXFUN(name, proto) __cdecl name proto char * _EXFUN(fgets, (char *, int, FILE *));
On windows: _cdecl=__attribute__((__cdecl__))
Does not repeat any more. Fixed by one of the previous commits (most likely by vv159170)
Under Windows XP bug can be reproduced
Created attachment 43164 [details] screenshot
Though the issue occurs on Windows, it's root isn't really Windows-specific. I was finally able to reproduce it on Solaris as well. The minimal example is: #define __cdecl __attribute__((__cdecl__)) char * __cdecl foo(int a, int b); The above function representation in code model has an empty name and no parameters. If I change the return type to char (instead of char*), the effect disappears.
Checking in cppparser.g; /shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/parser/cppparser.g,v <-- cppparser.g new revision: 1.1.2.11.4.9; previous revision: 1.1.2.11.4.8 done Unit tests are updated as well
Verified in 20070609 build