There is no setPath function as a part of the translationunit. so how does one save it to another file? (a file different from the one it parsed)
I have been able to parse a C++ file (in a java program outside of Eclipse using the jars) and get a working ITranslationUnit from it. I want to modify a declaration. And then save the modification to file. But I see no examples anywhere to do that.
I understand there is a "working copy" of the translationunit to deal with too.