<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br></div>I want to transform a source file so that Enum constants are replaced by their respective integral values.<br></div>More specifically, this should work on variable initializations and function or template default argument values.<br>

<br></div>I can obtain a VarDecl for functions and variables and a <br>NonTypeTemplateParmDecl for the templates.<br></div><div>(By using DeclVisitor)<br></div><br></div>How can I detect if these represent Enum Constants ?<br>

</div>And then get their value, possibly.<br><br></div><div>I tried implementing VisitEnumConstantDecl, but that doesn't seem to get called for these cases.<br> <br></div><div><div><div><div>Thanks,<br></div><div>Manasij Mukherjee<br>

</div><div><br></div></div></div></div></div>