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 155703

Summary: Go to declaration & c++ operators
Product: cnd Reporter: dalleyg <dalleyg>
Component: NavigationAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description dalleyg 2008-12-17 20:01:25 UTC
class Foo {
public:
  int operator()() { return 1; }
};

void bar() {
  Foo f;
  f();
}

Action: place the cursor on the parentheses in "f()" and try to navigate using "Go to declaration"

Expected: would recognize that f is an instance of Foo and that the parens refer to the operator(), then allow jumping
to its definition.

Actual: the "Go to declaration" option is grayed out.

Why it matters: some people use coding styles where they extensively overload operators, especially the function call
operator.  When trying to understand code in general, it's helpful to be able to bounce around with the "Go to
declaration".  This is even more helpful when trying to understand code that makes extensive use of operator overloading.
Comment 1 Alexey Vladykin 2010-05-21 08:06:40 UTC

*** This bug has been marked as a duplicate of bug 139079 ***