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.
steps to reproduce: - open mozilla project - navigate to class A from the file opmember.cpp - try to find usages of this class It will give more than 500 results and most of them incorrect like: - struct NS_STACK_CLASS A {} - incremet_and_xor(unsigned char *A, unsigned char *T) ...
if unable to reproduce, use class A from nsTestCrasher.cpp
class A { }; #define ALEN(A) (sizeof(A)/sizeof(A[0])) A class should not be found in #define because in #define it is macro param name, not reference to A class
incremet_and_xor(unsigned char *A, unsigned char *T) problem is due to FU working in dead code. It can be solved using FU filters presentation (will be handled as issue #218201)
expected solution is to have simple state machine understanding completion/hyperlink in preprocessor directives instead of direct use of c++ completion which consider directives as part of global context
fixed: http://hg.netbeans.org/cnd-main/rev/bf486f5b5014 http://hg.netbeans.org/cnd-main/rev/af8f42f6ba86
Integrated into 'main-golden', will be available in build *201210250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/bf486f5b5014 User: Nikolay Krasilnikov <nnnnnk@netbeans.org> Log: fixed #220310 - Incorrect find usages results