[cfe-dev] Modifying Structs

Anil Altinay via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 13 00:22:45 PST 2017


Hello,

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(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.

typedef struct
{
    int a;
} Integer;

best,
Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170113/b7153909/attachment.html>


More information about the cfe-dev mailing list