<div dir="ltr">Hi Manuel, <div><br></div><div>Thank you for your answer. The goal is to do refactoring to the project and apply the replacements to the original files. For the option (a), could you describe more specifically how to do it? Thanks. I checked the run function of clang::tooling::ClangTool, but it's just a for loop over all the source files. </div><div><br></div><div>Best regards,</div><div>Han</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 12:33 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>You can use</div><div>a) a compilation database</div><div>b) find . -name '*.cc' |xargs -n1 -P32</div><div>depending on the output data you want to produce, you'll need to pass an additional flag to your tool to get the shard number...</div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Tue, Jul 21, 2015 at 6:20 PM Han Wang <<a href="mailto:wanghan02@gmail.com" target="_blank">wanghan02@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all, <div><br></div><div>Is there a way to let the AST matcher run on multiple files in parallel? I'm working on Mac. I have some old windows code which may slow down the compiling time (maybe for some other reasons I don't know exactly). So this makes it necessary for me to analyze each translation unit in parallel. <br></div><div><br></div><div>At the moment I have only one mac which has 32 cores. I can live with that if it could be fully parallel. </div><div><br></div><div>Thanks!</div><div>Best regards,</div><div>Han</div><div><br></div></div></div></div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>
</blockquote></div><br></div>