<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Woops, sorry, for some reason I missed that there already have been plenty of answers.<br></div>
<div> </div>
<div id="sig19426269"><div class="signature">-- <br></div>
<div class="signature">  Gábor Kozár -- ShdNx<br></div>
<div class="signature">  kozargabor@gmail.com<br></div>
<div class="signature"> </div>
</div>
<div> </div>
<div> </div>
<div>On Mon, Oct 14, 2013, at 13:43, Gabor Kozar wrote:<br></div>
<blockquote type="cite"><div>The way I'd go would be to first locate the CXXConstructorDecl that is being called, look through its parameter list, get the index of the parameter named "x", and then find the expression on that index in the argument list.<br></div>
<div> </div>
<div>So as far as I know there is no more direct way of doing this.<br></div>
<div> </div>
<div><div>-- <br></div>
<div>  Gábor Kozár -- ShdNx<br></div>
<div>  kozargabor@gmail.com<br></div>
<div> </div>
</div>
<div> </div>
<div> </div>
<div>On Wed, Oct 9, 2013, at 11:42, Jesper Eskilson wrote:<br></div>
<blockquote type="cite"><div>Hi,<br></div>
<div> </div>
<div>I have a class with a large number of constructors which differ only <br></div>
<div>slightly. I'd like to be able to distinguish these by looking at the <br></div>
<div>names of the arguments, but I cannot seem to find them.<br></div>
<div> </div>
<div>class A {<br></div>
<div>public:<br></div>
<div>      A(int x);<br></div>
<div>      A(int x, float y);<br></div>
<div>      A(double w, int x, char *z);<br></div>
<div>      ...<br></div>
<div>}<br></div>
<div> </div>
<div>I'd like to be able to (for example) look at a particular <br></div>
<div>CXXConstructExpr and get the value of "x", whichever position "x" may<br></div>
<div>have.<br></div>
<div> </div>
<div>Where should I be looking?<br></div>
<div> </div>
<div>-- <br></div>
<div>*Jesper Eskilson* /Development Engineer/<br></div>
<div>IAR Systems AB<br></div>
<div>Box 23051, Strandbodgatan 1<br></div>
<div>SE-750 23 Uppsala, SWEDEN<br></div>
<div>E-mail: <a href="mailto:jesper.eskilson@iar.com">jesper.eskilson@iar.com</a> <<a href="mailto:jesper.eskilson@iar.com">mailto:jesper.eskilson@iar.com</a>> <br></div>
<div>Website: www.iar.com<br></div>
<div><<a href="http://www.iar.com">http://www.iar.com</a>> Twitter: www.twitter.com/iarsystems <br></div>
<div><<a href="http://www.twitter.com/iarsystems">http://www.twitter.com/iarsystems</a>><br></div>
<div> </div>
<div><u>_______________________________________________</u><br></div>
<div>cfe-dev mailing list<br></div>
<div><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br></div>
<div><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div>
</blockquote><div><u>_______________________________________________</u><br></div>
<div>cfe-dev mailing list<br></div>
<div><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br></div>
<div><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div>
</blockquote></body>
</html>