diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-07 16:08:35 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-07 16:08:35 (GMT) |
commit | 75567cbe8f6ec97df3db5b73f0c94625f63a4d0b (patch) | |
tree | b34f6f0f71bed343775349fa98150315cf133150 /bin/format_source_patch | |
parent | d1adf43852c29d9c81372a83b5ed2a5b943c5c6d (diff) | |
download | hdf5-75567cbe8f6ec97df3db5b73f0c94625f63a4d0b.zip hdf5-75567cbe8f6ec97df3db5b73f0c94625f63a4d0b.tar.gz hdf5-75567cbe8f6ec97df3db5b73f0c94625f63a4d0b.tar.bz2 |
Merge from develop
github updates
bin scripts updates
parser changes
remove obsolete file
Diffstat (limited to 'bin/format_source_patch')
-rwxr-xr-x | bin/format_source_patch | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/bin/format_source_patch b/bin/format_source_patch index 4c531ea..8d6be01 100755 --- a/bin/format_source_patch +++ b/bin/format_source_patch @@ -1,6 +1,26 @@ #!/bin/bash +# +# Recursively format all C & C++ sources and header files, except those in the +# 'config' directory and generated files, such as H5LTanalyze.c, etc. +# +# Note that any files or directories that are excluded here should also be +# added to the 'exclude' list in .github/workflows/clang-format-check.yml +# +# (Remember to update both bin/format_source and bin/format_source_patch) + find . -type d \( -path ./config \) -prune \ - -o -iname *.h -o -iname *.c -o -iname *.cpp -o -iname *.hpp \ + -or \( \( \! \( \ + -name H5LTanalyze.c \ + -or -name H5LTparse.c \ + -or -name H5LTparse.h \ + -or -name H5Epubgen.h \ + -or -name H5Einit.h \ + -or -name H5Eterm.h \ + -or -name H5Edefin.h \ + -or -name H5version.h \ + -or -name H5overflow.h \ + \) \) \ + -and \( -iname *.h -or -iname *.c -or -iname *.cpp -or -iname *.hpp \) \) \ | xargs clang-format -style=file -i -fallback-style=none git diff > clang_format.patch @@ -11,4 +31,4 @@ then rm clang_format.patch fi -exit 0
\ No newline at end of file +exit 0 |