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

Summary: Unused globals are not highlighted
Product: cnd Reporter: Leonid Lenyashin <lsl239>
Component: Code ModelAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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