<div dir="ltr"><div class="gmail_quote">On Wed, May 27, 2015 at 10:56 PM Maciej Poleski <<a href="mailto:poleski.maciej@gmail.com">poleski.maciej@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I'm looking for some way to customize FileSystem object used by ClangTool (especially in ClangTool::run). This is almost nice:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_doxygen_Tooling-5F8cpp-5Fsource.html-23l00278&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=fZ6jpat1uWsH8R2-fGGvQjj7A6RdcxkdjvVCaXbo-s4&s=KUO3hP4I13z24TrIfvEV5haQ4f7eUV2wddLt_ETjmCQ&e=" target="_blank">http://clang.llvm.org/doxygen/Tooling_8cpp_source.html#l00278</a><br>
almost, because object is created by implementation without chance to change this behavior (provide my own implementation).<br></blockquote><div><br></div><div>Which object?</div><div><br></div><div>If you want to inject files, you can currently do that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there some place in which FileSystem could be replaced?<br></blockquote><div><br></div><div>Currently not. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I also seen this way of "consuming AST":<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__eli.thegreenplace.net_2012_06_08_basic-2Dsource-2Dto-2Dsource-2Dtransformation-2Dwith-2Dclang_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=fZ6jpat1uWsH8R2-fGGvQjj7A6RdcxkdjvVCaXbo-s4&s=PH2C4wNfgP3xz8Hdi8tXpl69VBWPg-lnaTQkN3DVQuM&e=" target="_blank">http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/</a><br>
but it's quite old example, and looks "slightly" different than current implementation of ClangTool::run (with its use of ToolInvocation and others).<br>
<br>
Is there some general solution of this problem?<br></blockquote><div><br></div><div>Which problem exactly?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best Regards<br>
Maciej Poleski<br>
<br>
_______________________________________________<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/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>