<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br></div>I have a Decl* which can be cast into the appropriate Decl types.<br></div>I want to remove some specific information about that Decl from the AST.<br><br>

</div>For example, if it isa ClassTemplateDecl, I need to remove its default template arguments if it has them.<br><br></div>Or if I have an EnumDecl that has a specific type specified, like:<br></div>(enum a :int {a,b,c};)<br>

</div>That information needs to be erased.<br><br></div>How can I perform these kinds of changes to a Decl?<br></div><div><br>Manasij Mukherjee<br></div></div>