[cfe-dev] overwrite rewritten text

Kihong Heo via cfe-dev cfe-dev at lists.llvm.org
Sun Dec 9 21:04:29 PST 2018


Hi All,

How can I overwrite or remove some code parts which were already rewritten?

Here is my code:

string S = …
Rewriter.InsertText(Loc, S);
Rewriter.RemoveText(Loc, S.length());    <=== Here, Segmentation fault.


Thanks for your help!

Best,
Kihong




More information about the cfe-dev mailing list