<div dir="ltr"><div>Hello,</div><div><br></div><div>First of all, I want to say 'Hello' to everyone, I'm new in llvm/clang dev community.</div><div><br></div><div>Today I want to present you a small clang-format proposal.</div><div><br></div><div>I want to propose a '-r' option, with which, clang-format will search for files, which will match regex[s] passed like normal files, down in the directories tree. Motivation is more user-friendly clang-format. Now when user want to do such thing, he need to write some scripts/use bash magic. On Windows, it's even harder. Sample clang-format call, for c++ files, would look e.g. like this:</div><div>clang-format -i -r .\.cpp$</div><div><br></div><div>This patch provides strict regex matching, so such call won't work: <br>'clang-format -i -r *.cpp'</div><div><br></div><div>Next thing to implement could be some kind of 'easy regexs' or so, which would accept '*.cpp', but IMHO this isn't in the scope of this patch, so I didn't implement it.</div><div><br></div><div>I didn't write any test or so. Before, I wanted to write this mail and get feedback if -r option is even a thing and you will like it. After your acceptance, I'll write tests, update documentation etc.</div><div><br></div><div>Of course, patch is backward compatible.</div><div><br></div><div>If you have questions/comments/accepts/rejects feel free (:</div><div><br></div><div>Kind Regards,</div><div>Stryku</div></div>