Skip to content

Commit 843d8f4

Browse files
authored
Merge pull request #8668 from hjelmn/skip_fake_headers_meant_as_fortran_includes_until_the_file_extension_is_fixed
clang-format-ompi: do not process fake header files
2 parents 8b27377 + 4aaa5d6 commit 843d8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/clang-format-ompi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo "Running clang-format on code base..."
44

5-
files=($(git ls-tree -r master --name-only | grep -v '3rd-party/' | grep -v 'contrib' | grep -e '.*\.[ch]$'))
5+
files=($(git ls-tree -r master --name-only | grep -v '3rd-party/' | grep -v 'contrib' | grep -e '.*\.[ch]$' | xargs grep -L -- "-*- fortran -*-"))
66

77
for file in "${files[@]}" ; do
88
if test "$1" = "-d" ; then

0 commit comments

Comments
 (0)