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 152736 - Unused globals are not highlighted
Summary: Unused globals are not highlighted
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-07 21:25 UTC by Leonid Lenyashin
Modified: 2009-11-12 06:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Lenyashin 2008-11-07 21:25:18 UTC
The subject says it all. Consider

int i; // <<-- not highlighted

int main() {
    int j; // <<-- highlighted
    return 0;
}

The performance challenge here is clear, but users expectations are set high by the presence of the feature.
Comment 1 Vladimir Voskresensky 2008-11-08 13:42:52 UTC
the behavior is consistent with Java:
- public fields are not tracked for used/not_used, only local ones
this is responsibility of FindBugs/C++ Audits
Comment 2 Vladimir Voskresensky 2008-11-08 18:32:34 UTC
I think, it is one of audits => ENH