Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no way to look up a struct by tag #68

Open
davidmalcolm opened this issue Feb 9, 2017 · 3 comments
Open

no way to look up a struct by tag #68

davidmalcolm opened this issue Feb 9, 2017 · 3 comments
Assignees

Comments

@davidmalcolm
Copy link
Owner

I could not find a way to look up a structure type by tag.
E.g., I wanted to look up 'struct buffer'.
I could do this by introducing typedefs, but I'd rather
not have to do that.

@davidmalcolm davidmalcolm self-assigned this Feb 9, 2017
@davidmalcolm
Copy link
Owner Author

Imported from trac issue 28. Created by tromey on 2012-01-08T15:58:28, last modified: 2012-01-10T11:37:38

@davidmalcolm
Copy link
Owner Author

Trac comment by dmalcolm on 2012-01-09 15:42:47:

(oops; added this to ticket #26 by mistake)

I added an example of extracting them in bd03e3b

However, it looks like gcc.Block.vars is misnamed; it corresponds to:
{{{
#define BLOCK_VARS(NODE) (BLOCK_CHECK (NODE)->block.vars)
}}}
from tree.h, but this seems to contain all declarations, not just variables (but see ticket #21).

I'm inclined to rename it to "decls" - does this sound sane?

@davidmalcolm
Copy link
Owner Author

Trac comment by tromey on 2012-01-10 11:37:38:

Thanks for adding the example.

I think renaming this attribute would be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant