[PATCH] [clang-tidy] Add a little python script that can run clang-tidy and apply fixes over an entire codebase.
Benjamin Kramer
benny.kra at gmail.com
Thu Sep 4 05:11:25 PDT 2014
Hi alexfh,
Ever wanted to fix all the header guards in clang? Now it's easy.
Make sure clang-tidy is in $PATH and a compilation database is available.
$ ./run-clang-tidy.py -checks=llvm-header-guard -fix
... get coffee (or more CPU cores) ...
$ svn diff
Some may argue that this is just a glorified xargs -P, but it does a bit more ;)
http://reviews.llvm.org/D5188
Files:
clang-tidy/tool/run-clang-tidy.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5188.13249.patch
Type: text/x-patch
Size: 5840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140904/3c1d0478/attachment.bin>
More information about the cfe-commits
mailing list