Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .clang-format and format C files #2246

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

helsaawy
Copy link
Contributor

@helsaawy helsaawy commented Aug 23, 2024

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.

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\vsockexec.c`.
Changes mostly with brace position, spacing, indentation, and pointer
alignment.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy merged commit f80cf91 into microsoft:main Aug 27, 2024
18 of 19 checks passed
@helsaawy helsaawy deleted the clang branch August 27, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants