-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update reformatting settings, trace wrapping, and printf-format strin…
…gs (#22) * Add BEGIN_FUNC / CATCH / END_FUNC to macros * Remove incorrect trailing '{' * Update trace script to wrap H5TRACE macros at 110 characters and improve comments for code that performs this operation. * Clean up printf-formatting in H5public.h and correct some oversights in the code. * Reformat with BEGIN_FUNC / END_FUNC handled correctly by clang-format * Run clang-format on changes. * Correct H5_SIZEOF_HSIZE_T/H5_SIZEOF_HSSIZE_T macros to match typedef. * And make the undef value match also. * Update comment * Update clang-format actions to exclude generated files. * Post-process generated H5LTparse.h file as well as H5LTparse.c file. * Fix formatting * Update version of github clang-format action
- Loading branch information
Showing
41 changed files
with
14,438 additions
and
14,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.