<div dir="ltr">Actually, <span style="font-size:12.8px">HandleTagDeclDefinition is called for Integer struct but I couldn't get the name of the struct which is "Integer" from TagDecl. Is there any way to do this in </span><span style="font-size:12.8px">HandleTagDeclDefinition function.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 13, 2017 at 12:22 AM, Anil Altinay <span dir="ltr"><<a href="mailto:aaltinay@uci.edu" target="_blank">aaltinay@uci.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I am writing an AST consumer to modify fields of the structs in a C program and let clang to generate code accordingly. I was modifying structs in HandleTagDeclDefinition(<wbr>TagDecl *D) but I realized that if a struct defined using typedef like below, HandleTagDeclDefinition is not called after it's definition is completed. Is there any way to solve this problem? Thank you.</div><div><br></div><div>typedef struct</div><div>{</div><div> int a;</div><div>} Integer;</div><div><br></div><div>best,</div><div>Anil</div></div>
</blockquote></div><br></div>