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.

Bug 251096 - '#d' instead of '#define BB 222' in tooltip (macro value)
Summary: '#d' instead of '#define BB 222' in tooltip (macro value)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-11 12:34 UTC by soldatov
Modified: 2015-09-06 05:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-03-11 12:34:10 UTC
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
Comment 1 Alexander Simon 2015-09-03 16:10:56 UTC
confirmed:
- bug reproducible in old code model
But:
- bug is not reproducible in new code model
Comment 2 Vladimir Voskresensky 2015-09-04 09:22:56 UTC
So, the bug exists in Studio
Comment 3 Vladimir Voskresensky 2015-09-04 09:26:02 UTC
Petr, please, have a look
Comment 4 petrk 2015-09-04 11:19:46 UTC
Ok
Comment 6 Quality Engineering 2015-09-06 05:08:17 UTC
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)