[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cdt-dev] How to get references of struct fields separately
- From: Toni Pölzleitner <apoelz@xxxxxxxxxxxxxx>
- Date: Fri, 13 May 2011 08:00:21 +0200
- Delivered-to: firstname.lastname@example.org
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:188.8.131.52) Gecko/20110414 Thunderbird/3.1.10
nobody any suggestions for me there?
Am 11.05.2011 17:57, schrieb Toni Pölzleitner:
I am not sure whether I am asking my question in the right place, but
i tried the forum and they led me here, so I will give it a try. :)
I am trying to do some analysis of C code therefore I am using CDT to
do so. But unfortunately I am stuck right now, because I need to get
references of every field of structs.
What i basically do is:
I am building an AST and use a visitor to get all variables (precisely
declarations) and then search the index for references of every
variable. That works fine but for structs i need to get not only every
references for the whole struct, but for every single field of it
Anyone any suggestions how to do that?
Thanks in advance,
cdt-dev mailing list