<div dir="ltr">I think that this is basic shell functionality which should not be replicated in each tool. E.g. in most linux shells, just do:<div><br></div><div>find | xargs clang-format -i</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jun 12, 2014 at 3:27 AM, <span dir="ltr"><<a href="mailto:achartier@fastmail.fm" target="_blank">achartier@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I would like to run clang-format on a large codebase. I noticed that you<br>
can use wildcards to specify input files to clang-format, however these<br>
wildcards seem to only pick up files in the current directory and not<br>
subdirectories. Is there a way to specify a recursive search with a<br>
wildcard (similar to Artistic Style's --recursive option:<br>
<a href="http://astyle.sourceforge.net/astyle.html#_recursive" target="_blank">http://astyle.sourceforge.net/astyle.html#_recursive</a>)? Perhaps using a<br>
special wildcard syntax I'm not aware of?<br>
<br>
If this isn't currently a feature, what's the likelihood it could make<br>
it in the upcoming release? I have found Artistic Style's --recursive<br>
and --exclude options quite powerful and useful and would love to see<br>
similar functionality in clang-format.<br>
<br>
Thanks!<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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><br></div>