#216 anonymous structs not detected correctly

closed-invalid
None
5
2008-03-17
2008-03-06
fbk
No

This was originally posted here:
http://code.google.com/p/geditclassbrowser/issues/detail?id=1
The original message follows.

The following code

typedef struct{
IntegratorEngine id;
const char *name;
} IntegratorLookup;

results in
IntegratorLookup in *black*
id in *blue*
name in *blue*

all being listed at top level. Instead I would expect the blue items to be
shown underneath IntegratorLookup.

If switch to

typedef struct IntegratorLookup{
IntegratorEngine id;
const char *name;
} IntegratorLookup;

it works as expected.

Discussion

  • Elliott Hughes

    Elliott Hughes - 2008-03-17
    • assigned_to: nobody --> elliotth
    • status: open --> closed-invalid
     
  • Elliott Hughes

    Elliott Hughes - 2008-03-17

    Logged In: YES
    user_id=1127237
    Originator: NO

    ctags' tags are correct for the code given. http://software.jessies.org/evergreen/ uses ctags to show a little tree of symbols, and it looks right. the bug is in geditclassbrowser, not ctags.

    please follow up showing the tags output you see, the tags output you expect to see, and the version of ctags you're using.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks