microsoft / hcsshim

Windows - Host Compute Service Shim
MIT License
565 stars 256 forks source link

Add `.clang-format` and format C files #2246

Closed helsaawy closed 3 weeks ago

helsaawy commented 3 weeks ago

Add .clang-format file that can be used directly by the clang formatter or by the Microsoft C/C++ VSCode extension. Style based on Microsoft default style guide, but update brace and case indentation settings to match current files better (as well as Go code).

Run formatter on init\init.c and vsockexec\*. Changes mostly with brace position, spacing, indentation, and pointer alignment.