jak-project/common
Tyler Wilding c162c66118
g/j1: Cleanup all main issues in the formatter and format all of goal_src/jak1 (#3535)
This PR does two main things:
1. Work through the main low-hanging fruit issues in the formatter
keeping it from feeling mature and usable
2. Iterate and prove that point by formatting all of the Jak 1 code
base. **This has removed around 100K lines in total.**
- The decompiler will now format it's results for jak 1 to keep things
from drifting back to where they were. This is controlled by a new
config flag `format_code`.

How am I confident this hasn't broken anything?:
- I compiled the entire project and stored it's `out/jak1/obj` files
separately
- I then recompiled the project after formatting and wrote a script that
md5's each file and compares it (`compare-compilation-outputs.py`
- The results (eventually) were the same:

![Screenshot 2024-05-25
132900](https://github.com/open-goal/jak-project/assets/13153231/015e6f20-8d19-49b7-9951-97fa88ddc6c2)
> This proves that the only difference before and after is non-critical
whitespace for all code/macros that is actually in use.

I'm still aware of improvements that could be made to the formatter, as
well as general optimization of it's performance. But in general these
are for rare or non-critical situations in my opinion and I'll work
through them before doing Jak 2. The vast majority looks great and is
working properly at this point. Those known issues are the following if
you are curious:

![image](https://github.com/open-goal/jak-project/assets/13153231/0edfaba1-6d36-40f5-ab23-0642209867c4)
2024-06-05 22:17:31 -04:00
..
audio deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
cross_os_debug deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
cross_sockets REPL related improvements and fixes (#3545) 2024-06-03 00:14:52 -04:00
custom_data [buildactor] support generating collide-meshes for custom models (#3540) 2024-05-29 06:09:20 +02:00
dma deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
formatter g/j1: Cleanup all main issues in the formatter and format all of goal_src/jak1 (#3535) 2024-06-05 22:17:31 -04:00
global_profiler deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
goos REPL related improvements and fixes (#3545) 2024-06-03 00:14:52 -04:00
log REPL related improvements and fixes (#3545) 2024-06-03 00:14:52 -04:00
math deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
repl REPL related improvements and fixes (#3545) 2024-06-03 00:14:52 -04:00
serialization [jak2] new subtitle speakers (#3536) 2024-05-30 22:02:44 -04:00
sqlite [jak2] Work-in-progress texture animations (#2819) 2023-07-14 18:17:54 -04:00
texture Start setting up texture animation for jak 3. (#3524) 2024-05-18 11:23:48 -04:00
type_system Dependency graph work - Part 1 - Preliminary work (#3505) 2024-05-12 12:37:59 -04:00
util New Crowdin updates (#3547) 2024-06-03 01:01:58 -04:00
versions deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
CMakeLists.txt REPL related improvements and fixes (#3545) 2024-06-03 00:14:52 -04:00
common_types.h support c++ tools on macos (#2063) 2022-12-22 17:12:05 -05:00
goal_constants.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
link_types.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
listener_common.h Typo fix LTT_MSG_INSEPCT (#2778) 2023-06-29 16:45:53 -04:00
symbols.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00