Repository: trafficserver Updated Branches: refs/heads/master 2ea811284 -> 1554fac66
TS-3419 Add a basic clang-format target This can certainly be improved upon later, maybe each subdir / Makefile.am should have a clang-format target. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1554fac6 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1554fac6 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1554fac6 Branch: refs/heads/master Commit: 1554fac668c894e64870065b00786512af7f3df9 Parents: 2ea8112 Author: Leif Hedstrom <[email protected]> Authored: Sat Feb 28 00:37:46 2015 -0500 Committer: Leif Hedstrom <[email protected]> Committed: Sat Feb 28 00:37:46 2015 -0500 ---------------------------------------------------------------------- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1554fac6/Makefile.am ---------------------------------------------------------------------- diff --git a/Makefile.am b/Makefile.am index d116820..d4060eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,6 +98,9 @@ rat: submodules: git submodule update --init +clang-format: + for f in `find . -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/ck -e lib/luajit`; do echo $$f; clang-format -i $$f; done + help: @echo 'all default target for building the package' && \ echo 'check run the test suite, if any' && \ @@ -113,6 +116,7 @@ help: echo 'rat produce a RAT licence compliance report of the source' && \ echo 'submodules update the git submodules' && \ echo 'doxygen generate doxygen docs in doc/html dir' && \ + echo 'clang-format run clang-format over most C and C++ files (not git submodules/trees)' && \ echo 'help display this list of make targets' && \ echo 'install install by copying the built files to system-wide dirs' && \ echo 'install-strip same as install but then strips debugging symbols' && \
