crashappsec / libcon4m

Base Compiler and Runtime Support for con4m
Apache License 2.0
0 stars 0 forks source link

Add baseline .clang-format and format sources #11

Closed orangematt closed 4 months ago

orangematt commented 4 months ago

Pulled Curiosity's .clang-format file for a baseline and formatted existing sources via ninja -C build clang-format. Skipped formatting of include/vendor/* since these appear to mostly come from vendored sources, though it seems with maybe some minor tweaks.

No changes are included here other than formatting. I expect we'll want to tweak output a bit, either in .clang-format or the sources to get clang-format to do what we want. The downside to applying clang-format to existing sources is that things may take a bit to settle, but worth it IMHO to have the more consistent formatting

I used clang-format 17.0.6 for formatting