Commit graph

7 commits

Author SHA1 Message Date
Sam Lantinga 07d6d116ed Commented out syntax that causes Visual Studio 2019 to complain on every edit
(cherry picked from commit 4713db1484c5519967b7e1dc2a00ee0b36853428)
2022-12-02 00:43:46 -08:00
Sam Lantinga b8d85c6939 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

(cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
2022-11-30 12:57:41 -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