multilang-depends / depends

Depends is a fast, comprehensive code dependency analysis tool
MIT License
195 stars 54 forks source link

AliasEntity in cpp cannot refer to the true entity in some situation #29

Open lzl121373 opened 3 years ago

lzl121373 commented 3 years ago

Every AliasEntity find its referToEntity by resolve its originName attribute. But when resolving one cpp file like this :

typedef struct{
    int a;
    int  b;
} alias1;

typedef struct{
    long a;
    int  b;
} alias2;

typedef enum{
    AB;
    ABC;
} alias3;

The result of depends will show that all of these AliasEntity refer to the same entity which is available in the visibleNames list of their parententity.That means AliasEntity cannot refer to their true refertoentity by only resolve their originName attribute.So I think if we can add some useful attributes to the AliasEntity when parsing the file?