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.
newfile.h: ====================================================================== #ifndef NEWFILE_H #define NEWFILE_H #if AA == 0 #define BB 111 #else #define BB 222 #endif #endif /* NEWFILE_H */ ====================================================================== main.cpp: ====================================================================== #define AA 0 #include <cstdio> #include "newfile.h" int main(int argc, char** argv) { printf("%d\n", BB); return 0; } ====================================================================== Scenario: - Open project with newfile.h and main.cpp - Reparse project - Open main.cpp file - Press Ctrl and move cursor on BB ==> such tooltip appears: Macro BB #define BB 111 - Replace "#define AA 0" on "#define AA 1" - Save file - Press Ctrl and move cursor on BB again ==> I see such tooltip: Macro BB #d
confirmed: - bug reproducible in old code model But: - bug is not reproducible in new code model
So, the bug exists in Studio
Petr, please, have a look
Ok
http://hg.netbeans.org/cnd-main/rev/b7390461a176
Integrated into 'main-silver', will be available in build *201509060314* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b7390461a176 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #251096 - '#d' instead of '#define BB 222' in tooltip (macro value)