Commit Graph

8 Commits

Author SHA1 Message Date
Frank Praznik
717f297849 Add 'wl_list_for_each_safe' to the clang-format macro list
...and fix the formatting when it is used.
2024-03-14 10:22:23 -04:00
Sam Lantinga
4713db1484 Commented out syntax that causes Visual Studio 2019 to complain on every edit 2022-12-02 00:43:01 -08:00
Sam Lantinga
5750bcb174
Update for SDL3 coding style (#6717)
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.

In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.

The script I ran for the src directory is added as build-scripts/clang-format-src.sh

This fixes:
#6592
#6593
#6594
2022-11-30 12:51:59 -08:00
Sam Lantinga
001d2e2f65 Disable formatting not supported by Visual Studio 2019 2022-05-27 15:29:21 -07:00
Sam Lantinga
c02cd20352 Revert "Disable formatting not supported by Visual Studio 2019"
This reverts commit 26a75add31.

It turns out Visual Studio doesn't support a lot of the formatting used here.
2022-05-27 15:16:02 -07:00
Sam Lantinga
26a75add31 Disable formatting not supported by Visual Studio 2019 2022-05-27 15:15:14 -07:00
Pierre Wendling
973424d9cb Add for-each macros to clang-format. 2022-05-19 01:31:29 -07:00
Pierre Wendling
c6a77971bd Add a clang-format config file.
tmp
2022-05-19 01:31:29 -07:00