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

Summary: [code model] Find Usage fails with typedef [follow typedefs]
Product: cnd Reporter: rmartins <rmartins>
Component: Code ModelAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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"