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 - Go to declaration & c++ operators
Summary: Go to declaration & c++ operators
Status: RESOLVED DUPLICATE of bug 139079
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 20:01 UTC by dalleyg
Modified: 2010-05-21 08:06 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 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 ***