Ticket #28 (new defect)

Opened 5 years ago

Last modified 5 years ago

no way to look up a struct by tag

Reported by: tromey Owned by: dmalcolm@…
Priority: major Milestone:
Component: Core plugin code Version:
Keywords: Cc:
Blocked By: Blocking:


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.

Change History

comment:1 Changed 5 years ago by dmalcolm

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

I added an example of extracting them in bd03e3b0845fa785330af3916f4253d505a9fa16

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?

comment:2 Changed 5 years ago by tromey

Thanks for adding the example.

I think renaming this attribute would be fine.

Note: See TracTickets for help on using tickets.