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

Maurizio Vitale mrz.vtl at gmail.com
Thu Jun 12 05:12:58 PDT 2014


On Thu, Jun 12, 2014 at 3:27 AM, Csaba Raduly <rcsaba at gmail.com> wrote:

> Hi Daniel,
>
> On Thu, Jun 12, 2014 at 5:30 AM, Daniel Jasper <djasper at google.com> wrote:
> > 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
>
> Some legacy OSes (e.g. Windows) have less capable shells :)
>
> then the solution is to use more capable shells, more capable OSes or both.
Even with those less capable shells, it should be possible to write a .bat
file that traverses a hierarchy and call commands on files.
Not that I would know how to do it, but the google, harnessing the power of
the intertubes, tells me:

for /r %%f in (*) do echo %%f



> Csaba
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus
> Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
> _______________________________________________
> 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/37de4952/attachment.html>


More information about the cfe-dev mailing list