[cfe-dev] ASTImporter & CallExpr
Vassil Vassilev
vvasilev at cern.ch
Sat Jun 8 10:02:51 PDT 2013
On 6/8/13 6:24 PM, Vassil Vassilev wrote:
> On 6/7/13 8:25 PM, Argyrios Kyrtzidis wrote:
>> On Jun 6, 2013, at 1:57 PM, Vassil Vassilev <vvasilev at cern.ch> wrote:
>>
>>> 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?
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
More information about the cfe-dev
mailing list