mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
89b5ee7ac3
For now all .c and .h files are blacklisted. As they become clang-formatted, we'll remove them from the blacklist,and then this test will produce output if there are diffs. Differential Revision: https://phab.mercurial-scm.org/D1133
11 lines
334 B
Perl
11 lines
334 B
Perl
#require clang-format test-repo
|
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
|
|
|
$ cd "$TESTDIR"/..
|
|
$ for f in `testrepohg files 'set:(**.c or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do
|
|
> clang-format --style file $f > $f.formatted
|
|
> cmp $f $f.formatted || diff -u $f $f.formatted
|
|
> rm $f.formatted
|
|
> done
|