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 109005 - 'C/C++ Go To Declaration...' tool finds only one namespace definition in project
Summary: 'C/C++ Go To Declaration...' tool finds only one namespace definition in project
Status: VERIFIED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 09:07 UTC by soldatov
Modified: 2007-11-22 09:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2007-07-06 09:07:04 UTC
Steps:
- Create project with 4 such files: newfile.cc, newfile.h, newfile2.h, newfile3.h
------------------------------------------------------------------
// newfile.cc
#include "newfile.h"
#include "newfile2.h"
#include "newfile3.h"

using namespace A;

int main(int argc, char** argv) {
    var1 = 5;
    var2 = 5;
    var3 = 5;
    
    return (0);
}
------------------------------------------------------------------
// newfile.h
namespace A {
    int var1 = 4;
}
------------------------------------------------------------------
// newfile2.h
namespace A {
    int var2 = 4;
}
------------------------------------------------------------------
// newfile3.h
namespace A {
    int var3 = 4;
}
------------------------------------------------------------------
- Push 'Navigate|C/C++ Go To Declaration...' menu item
- Type "A" in 'Go To Declaration' window
==> Only 1 item appears in table. I think this tool should find all 3 declarations.

Should be:
----------------------------
| Go To Declaration        |
----------------------------
|          +----------+    |
| Name     | A        |    |
|          +----------+    |
| Matching                 |
|--------------------------|
| {...} A (newfile.h)      |
| {...} A (newfile2.h)     |
| {...} A (newfile3.h)     |
|--------------------------|
|    |Open Source| |Close| |
+--------------------------+
Comment 1 Vladimir Kvashin 2007-08-28 19:53:22 UTC
Now the existent "C/C++ Go to Declaration" is being replaced by the standard "Go to Type" plus additional "Go to
Function or Variable" (see issue #112725). After completion of this task, there will be no "Namespaces" check box at all

Finding all definitions of the particular namespace is quite a different task that definitely needs another UI. So
should anybody need this functionality, please file a separate RFE.
Comment 2 soldatov 2007-11-22 09:50:45 UTC
inconsistent with NB6.0 bug