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.
regression: create empty C++ header file => it has "-D __cplusplus" entry in navigator which jumps to the zero location of file #ifndef NEWFILE_H #define NEWFILE_H #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif #endif /* NEWFILE_H */
http://hg.netbeans.org/cnd-main/rev/dace4c061d43
Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/dace4c061d43 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #253964 - [newcodemodel] incorrect "-D __cplusplus" in navigator - we can not register system macro in files' FileContent
It is designed behaviour in new code model. IMHO it is wrong issue. Please describe what is wrong?
Navigator shows macro declared in file __cpluspplus is used, but not declared in header. Compare with #define AA in header and #ifdef AA in source => source file should not display AA in navigator, because it's only used, but not declared there