Statement replacement

Hi,

I would like to know the approaches that clang offers in order to replace one statement to another within the body of a C++ method.

I don't want to change the original code but just the body of the method in the memory and then from that emit a new source file.

Thanks,

Miguel