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 253905 - Macro expansion span is broken
Summary: Macro expansion span is broken
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 14:49 UTC by petrk
Modified: 2015-07-30 10:37 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 petrk 2015-07-28 14:49:11 UTC
#include <stdio.h>

#define ONE 1
#define TWO 2
#define min(x, y) ((x) < (y)) ? (x) : (y)

int main() {
    printf("%d", min(ONE, TWO)); // Ctrl+Alt+Hover on min doesn't show expansion
    return 0;
}
Comment 1 petrk 2015-07-28 15:03:13 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/921a9c22ba2f
Comment 2 Quality Engineering 2015-07-29 01:29:39 UTC
Integrated into 'main-silver', will be available in build *201507290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/921a9c22ba2f
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #253905 - Macro expansion span is broken