<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Ok, I can certainly wrap it in a find call. I just thought my use case would be fairly common (I've come across some other posts online trying to do something similar) and that, being a common use case, it may make sense to support it well from within the tool itself rather than requiring the user to come up with a solution of their own.</div>
<div> </div>
<div> </div>
<div>On Wed, Jun 11, 2014, at 08:30 PM, Daniel Jasper wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>I think that this is basic shell functionality which should not be replicated in each tool. E.g. in most linux shells, just do:<br></div>
<div> </div>
<div>find | xargs clang-format -i<br></div>
</div>
<div><div> </div>
<div> </div>
<div><div>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></div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello,<br></div>
<div> </div>
<div>
I would like to run clang-format on a large codebase. I noticed that you<br></div>
<div>
can use wildcards to specify input files to clang-format, however these<br></div>
<div>
wildcards seem to only pick up files in the current directory and not<br></div>
<div>
subdirectories. Is there a way to specify a recursive search with a<br></div>
<div>
wildcard (similar to Artistic Style's --recursive option:<br></div>
<div><a href="http://astyle.sourceforge.net/astyle.html#_recursive" target="_blank">http://astyle.sourceforge.net/astyle.html#_recursive</a>)? Perhaps using a<br></div>
<div>
special wildcard syntax I'm not aware of?<br></div>
<div> </div>
<div>
If this isn't currently a feature, what's the likelihood it could make<br></div>
<div>
it in the upcoming release? I have found Artistic Style's --recursive<br></div>
<div>
and --exclude options quite powerful and useful and would love to see<br></div>
<div>
similar functionality in clang-format.<br></div>
<div> </div>
<div>
Thanks!<br></div>
<div>
_______________________________________________<br></div>
<div>
cfe-dev mailing list<br></div>
<div><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br></div>
<div><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div>
</blockquote></div>
<div> </div>
</div>
</blockquote><div> </div>
</body>
</html>