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 218901 - [code model] Find Usage fails with typedef [follow typedefs]
Summary: [code model] Find Usage fails with typedef [follow typedefs]
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 11:39 UTC by rmartins
Modified: 2012-09-26 09:39 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 rmartins 2012-09-24 11:39:52 UTC
Hi,
If you try to use "Find usages" on A() it should return B().
But as I use the "SuperType" indirection it is unable to detect it.

class A{
public:
    A(){}
    virtual ~A(){}
};

class B: public A{
public:
    typedef A SuperType;
    B():SuperType(){}
    virtual ~B(){}
    
};

But if in the aforementioned code the line "B():SuperType(){}" is 
changed to "B():A(){}" then it works correctly:

class A{
public:
    A(){}
    virtual ~A(){}
};

class B: public A{
public:
    typedef A SuperType;
    B():A(){}
    virtual ~B(){}
    
};


Thanks,
Rolando
Comment 1 Vladimir Voskresensky 2012-09-26 09:39:01 UTC
Looks like the feature
"follow typedef chains"