<div dir="ltr">Hi clang developers,<br><br>First, I would like to thank Douglas Gregor, who consistently helps and answers questions. I learn a lot from his replies, so Doug, I really appreciate it!<br><br>I'm working on a program that does a src-2-src transformations, and I have the following issues:<br>

<ol><li> For some Stmt, how can I get its parent Stmt. i.e. when Replacing a Stmt which forms an IF body, sometimes it requires placing the new code inside brackets (replacement of a single Stmt with a block of Stmts), or if I'm replacing a Stmt which is part of a compound expression I want to get the location of the semicolon, in order to insert some code right afterward.<br>

How can I achieve this?<br><br></li><li>Calling ParmVarDecl::getType::getAsString on the src code "const char *str" returns "TODO".<br>How can I get just the "char*", without the const?<br>I've tried to apply QualType::removeConst, QualType::removeCVRQualifiers but none seems to do any change.<br>

What is the right way to get the stripped type, without the CVR Qualifiers?<br><br></li><li>Currently I'm working on VS, but I want to switch to eclipse (minGW), unfortunately I'm having problems with llvm in eclipse. I run cmake with eclipse CDT configuration, but when I try to compile in eclipse I get errors. When I try to link an llvm client to existing llvm libraries (built with VS) I also get multiple compilation errors (the include lib is specified).<br>

My assumption is that minGW is more strict than VS. Is this really the problem, or am I missing something?<br>Can anybody help me work it out?<br></li></ol><br>Thanks in advance,<br>Ilya<br><br clear="all"><br>-- <br><div dir="ltr">

Best Regards,<br>Ilya Mirsky<br><a href="http://www.cs.bgu.ac.il/%7Emirskyil" target="_blank">www.cs.bgu.ac.il/~mirskyil</a><br></div><br>
</div>