Skip to content

no way to look up a struct by tag #68

Open

Description

@davidmalcolm

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.

Activity

  1. self-assigned this
    on Feb 9, 2017
  2. davidmalcolm commented on Feb 9, 2017

    @davidmalcolm
    OwnerAuthor

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

  3. davidmalcolm commented on Feb 9, 2017

    @davidmalcolm
    OwnerAuthor

    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?

  4. davidmalcolm commented on Feb 9, 2017

    @davidmalcolm
    OwnerAuthor

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions