<div dir="ltr"><div class="gmail_quote">On Sat, Mar 14, 2015 at 12:57 PM Gabor Kozar <<a href="mailto:kozargabor@gmail.com">kozargabor@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><div>I'm working on a clang tool that instruments source code. However, I can't seem to find any option to set the output file path, i.e. my tool will always modify the original file, which is not what I want.<br></div>
<div> </div>
<div>Was this a deliberate decision, or am I just missing something?<br></div></div></blockquote><div><br></div><div>If you're using a refactoring tool, and you chose to call the function to rewrite the original files, that's a deliberate decision. Otherwise, you can write out the modified files in whatever way you want.</div><div>If you're asking whether there's library support for writing files to a different directory: no there isn't. Usually what people want to do is to write the diffs / changes out, instead of the modified files, in that case...</div><div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div>
<div> </div>
<div><div>---<br></div>
<div>Best regards,<br></div>
<div> </div>
<div>Gábor 'ShdNx' Kozár<br></div>
<div><a href="http://gaborkozar.me" target="_blank">http://gaborkozar.me</a><br></div>
<div> </div>
</div>
<div> </div>
</div>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>