Show More
@@ -124,7 +124,7 b' check-code:' | |||||
124 |
|
124 | |||
125 | format-c: |
|
125 | format-c: | |
126 | clang-format --style file -i \ |
|
126 | clang-format --style file -i \ | |
127 | `hg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` |
|
127 | `hg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` | |
128 |
|
128 | |||
129 | update-pot: i18n/hg.pot |
|
129 | update-pot: i18n/hg.pot | |
130 |
|
130 |
@@ -3,7 +3,7 b'' | |||||
3 | $ . "$TESTDIR/helpers-testrepo.sh" |
|
3 | $ . "$TESTDIR/helpers-testrepo.sh" | |
4 |
|
4 | |||
5 | $ cd "$TESTDIR"/.. |
|
5 | $ cd "$TESTDIR"/.. | |
6 | $ for f in `testrepohg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do |
|
6 | $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do | |
7 | > clang-format --style file $f > $f.formatted |
|
7 | > clang-format --style file $f > $f.formatted | |
8 | > cmp $f $f.formatted || diff -u $f $f.formatted |
|
8 | > cmp $f $f.formatted || diff -u $f $f.formatted | |
9 | > rm $f.formatted |
|
9 | > rm $f.formatted |
General Comments 0
You need to be logged in to leave comments.
Login now