Skip to content

Commit cc32d74

Browse files
authored
Merge pull request #8674 from hjelmn/do_not_format_f90_mode_files_since_they_are_not_really_headers_just_fortran_includes
clang-format-ompi: do not format files that have -*- f90 -*-
2 parents edb0d97 + 6910f0d commit cc32d74

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

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

0 commit comments

Comments
 (0)