test-check-clang-format.t
10 lines
| 344 B
| text/troff
|
Tads3Lexer
/ tests / test-check-clang-format.t
Augie Fackler
|
r34835 | #require clang-format test-repo | ||
$ . "$TESTDIR/helpers-testrepo.sh" | ||||
$ cd "$TESTDIR"/.. | ||||
Gregory Szorc
|
r37201 | $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` ; do | ||
Augie Fackler
|
r34835 | > clang-format --style file $f > $f.formatted | ||
> cmp $f $f.formatted || diff -u $f $f.formatted | ||||
> rm $f.formatted | ||||
> done | ||||