<html>
<head></head>
<body>
<p><span style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">Hello,</span></p>
<div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">I don't need any information about the plugin, but I would like to know if Clang is what I need and I wonder if you could help me because I'm a bit lost. Well, what I need is to parser a C++ program in order to ger some information about the code and, after that, to change the code regarding that information collected. For instance, if I have this function:</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">1 int addition (int a, int b){</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">2       return a + b;</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">3 };</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">I would need to know that there is a plus sign (+) and where it is located in the code. So i would need the compiler told me there is a + sign in the second line.</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">Once i have that information,the next step would be to parse the code again to turn that + sign into another sign, for instance, the multiplication sign:</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">int addition (int a, int b){</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">        return a<span style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;"> <strong><span style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #ff0000;">*</span></strong></span> b;</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">};</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">Could I do what i want with Clang? I don't want to write a whole parser for C++, that would be really though and I'm looking for a solution. I would need to collect more information apart from arithmetic operators such as all the constant values or even the inheritance hierarchy among classes if a program uses object-oriented features.</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px;">I hope you could lend me a hand. Thanks in advance.</div><br/>
<br/>
</body>
</html>