Skip to content

Commit 6910f0d

Browse files
committed
clang-format-ompi: do not format files that have -*- f90 -*-
One more commit to ensure we don't try to format files that have a fortran emacs mode line. Priot commit checked for fortran but Open MPI also uses f90 mode for some files. Signed-off-by: Nathan Hjelm <hjelmn@google.com>
1 parent edb0d97 commit 6910f0d

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)