<div dir="ltr"><div><div><div><div><div><div>Hi all,<br><br></div>I want to get a function's default parameter value as string. That's to say, if a function "void func(int a = 5);", I want to get the string "5".<br>
</div>I checked ParmVarDecl, but found it only returns an Expr as the default arg.<br><br></div>So my question is, how to get a default parameter value as string, or how to convert an Expr to string?<br><br></div>Thanks<br>
</div></div><br></div>