<div dir="ltr">Hello,<br><br>In some situations, I need to generate a function call on the fly in clang. For example, whenever I find a reference to some identifier 'myvar', I want to replace the reference with the call foo(myvar), where 'foo' is a known function name. <br>

<br>I investigated the code of clang and I see CallExpr represents a function call, but it requires quite a lot to be created and I'm not sure where to get that information.just be created. What would be the best way to go about this? <br>

<br>Thanks in advance.<br><br><br><br></div>