summaryrefslogtreecommitdiff
path: root/format.py
AgeCommit message (Collapse)Author
2025-05-20Format assets/ (#2530)Dragorn421
2025-01-20format.py: Allow empty files (#2434)cadmic
2024-12-13Move build.c definitions to the makefile, introduce and use libultra version ↵Tharo
defines in libultra instead of PLATFORM defines (#2353) * Move build.c definitions to the makefile, introduce and use libultra version defines in libultra instead of PLATFORM defines * MAJOR+MINOR versions -> VERSION+PATCH, stringify build defines in makefile, let the libultra version determine the OPTFLAGS for libultra files * Clang format moment * Remove LIBULTRA_VERSION_ID, tweak OS_VERSION and libultra version definitions * Better fix for formatting problems
2024-08-09Add -DF3DEX_GBI_2 to format.py flags (#2022)cadmic
2024-07-17make format.py clean up extra whitespace, also in .h files (#1991)Dragorn421
* make format.py clean up extra whitespace, also in .h files * fixup * cleanup whitespace msg * Update check_format.py to also check non-src files touched by format.py * format
2024-01-31Check format: only check modified files, v2 (#1680)Dragorn421
* Check format: only check modified files, v2 * cheeky z_play edit * format * rename z_play.c -> z_play_.c * Revert "rename z_play.c -> z_play_.c" This reverts commit 9da9e76309d3893c44b8fa06dd23b94b2dedebf0. * rm z_moji.c * Revert "rm z_moji.c" This reverts commit bd2d5acb5a88a36a9ac4feeba73b2c3e70a9e8b3.
2024-01-30Only check formatting on modified files (#1673)Dragorn421
* only check formatting on modified files (attempt 1) * foreshadow maximum command string length being an issue and pass files list using a file * rm temp file list otherwise it shows in git status and counts as a "formatting diff"... * cheeky z_play modif * format
2024-01-11Removed unused imports and other minor improvements (#1602)adaliaramon
* Removed unused imports and other minor improvements * revert tools/ZAPD/ZAPD/genbuildinfo.py * revert diff.py * Update sym_info.py * revert asm_processor/ --------- Co-authored-by: fig02 <fig02srl@gmail.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-01-05Create separate build directories based on version (#1591)cadmic
* Create separate build directories based on version * Fix find_unused_asm.sh * Remove find_unused_asm.sh from Jenkinsfile * Revert diff.py * Clarify that gc-eu-mq is not "supported" yet * Revert xmlcreate.py (to be deleted) * Remove gc-eu-mq for now * Add version flags to diff_settings.py and sym_info.py * --version -> --oot-version * Fix --oot-version * Revert adding version flags to tools * Delete find_unused_asm.sh * Revert changes to first_diff.py output in tutorial * Factor out sed usages for spec
2023-07-27Prefer clang-format-14 (#1517)Dragorn421
* Change preferred clang version to 14 (for formatting) * Add `--show-paths` arg to format.py for printing paths to clang-* binaries used * Run formatter (clang-format-14) * run formatter
2022-10-02Fix format.py segfaults and other issues when applying fixes (#1387)Roman971
Removed the --style-config option when running clang-apply-replacements because it can cause segfaults and it's not actually needed in our use case. Also fixed clang-tidy options to not include --fix when running with multiprocessing.
2022-07-30Fix format.py for python 3.6 (#1337)Tharo
2022-07-30Rewrite format script in python to improve speed with multiprocessing (#1331)Roman971
* Rewrite format script in python to improve speed with multiprocessing * Make format.py executable