ASTImporter & CallExpr

Hi,
   Is there any particular reason not to implement importing a CallExpr in the ASTImporter? Currently there is no ASTNodeImporter::VisitCallExpr.
Thanks,
Vassil

Hi,
Is there any particular reason not to implement importing a CallExpr in the ASTImporter? Currently there is no ASTNodeImporter::VisitCallExpr.

I don't think there's a particular reason, I believe just noone got around to implement it.

Thank you for the answer Argyrios. I will try to implement it. The reason I need it is because I want to deep-copy fragments of the AST. Is the ASTImporter that the right way to go?
Vassil

By deep-copy I actually meant Stmt cloning. Eg: I have f(x) and I am building f'(x), as a first derivative of f(x). I need to differentiate certain kinds of stmts the rest I just need to clone in the new function body.
Vassil

Hi,

Hi Olaf,
   Thanks for the pointers! I am using your StmtClone now and it seems to do what I want it to do :slight_smile:
Vassil