diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-07 16:36:19 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-07 16:36:19 (GMT) |
commit | 81e70df05c9aac3cf9974890c3773c15d48740a5 (patch) | |
tree | baebee86d0cbfcd58fe049bce40c74857dd43c56 /bin/format_source | |
parent | 2eeb6c46fe23379b212ebde1bf062ec726256fb8 (diff) | |
download | hdf5-81e70df05c9aac3cf9974890c3773c15d48740a5.zip hdf5-81e70df05c9aac3cf9974890c3773c15d48740a5.tar.gz hdf5-81e70df05c9aac3cf9974890c3773c15d48740a5.tar.bz2 |
Merge from develop
github updates
bin scripts
parser updates
Diffstat (limited to 'bin/format_source')
-rwxr-xr-x | bin/format_source | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/bin/format_source b/bin/format_source index b0b695c..1128def 100755 --- a/bin/format_source +++ b/bin/format_source @@ -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 -exit 0
\ No newline at end of file +exit 0 |