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.
Summary: | can not navigate to field from macro based expression; Find Usages doesn't find the field | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Voskresensky <vv159170> |
Component: | Code Model | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Voskresensky
2014-12-12 14:18:44 UTC
Another example is as follows class ClassToFind { // try to find ClassToFind public: void method() {} }; #define CLASS_TO_FIND ClassToFind // found (should it be found?) static void funct_in_the_same_file(CLASS_TO_FIND *instance) { // not found CLASS_TO_FIND *p = instance; // not found p->method(); // found ok instance->method(); // found ok } Today I was asked by an rdbms guy, whether we will find usages of functions or variables that are used in macros. Unfortunately we can not. I guess it does not make sense to fix this until we get new code model... I was going to file a separate IZ in this respect, then decided that this one suites, so I'm just adding another example. |