[cfe-dev] Configure clang-format to traverse subdirectories?

Daniel Jasper djasper at google.com
Wed Jun 11 20:30:50 PDT 2014


I think that this is basic shell functionality which should not be
replicated in each tool. E.g. in most linux shells, just do:

find | xargs clang-format -i


On Thu, Jun 12, 2014 at 3:27 AM, <achartier at fastmail.fm> wrote:

> Hello,
>
> I would like to run clang-format on a large codebase. I noticed that you
> can use wildcards to specify input files to clang-format, however these
> wildcards seem to only pick up files in the current directory and not
> subdirectories. Is there a way to specify a recursive search with a
> wildcard (similar to Artistic Style's --recursive option:
> http://astyle.sourceforge.net/astyle.html#_recursive)? Perhaps using a
> special wildcard syntax I'm not aware of?
>
> If this isn't currently a feature, what's the likelihood it could make
> it in the upcoming release? I have found Artistic Style's --recursive
> and --exclude options quite powerful and useful and would love to see
> similar functionality in clang-format.
>
> Thanks!
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140612/a2060b72/attachment.html>


More information about the cfe-dev mailing list