mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-21 07:51:46 +08:00
c6e4e53546
* Update clang config to put H5E_BEGIN_TRY / H5E_END_TRY on separate lines, empty C++ methods on separate lines, understand that ALL_MEMBERS / UNIQUE_MEMBERS are foreach macros, and properly skip the 'config' directory in the find command without emiting a warning * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
27 lines
930 B
Bash
Executable File
27 lines
930 B
Bash
Executable File
#!/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 -and -not -path ./config \) \
|
|
-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
|