Skip to content

Format C code with Artistic Style #586

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

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

andyundso
Copy link
Member

Closes #565.

This PR introduces a new code formatter for the C and header files. I played around with clang-format, but this gives weird results no matter the configuration with these preprocessor statements (long line lengths with macros, unable to align ifdef with the code). Artistic style is also not perfect as I do not like having the opening brace for a function on a separate line, but this is really the only complaint.

I added a new task to the Rakefile to invoke both formatters at once.

@andyundso andyundso merged commit 9955437 into rails-sqlserver:master Jun 4, 2025
115 checks passed
@andyundso andyundso deleted the introduce-c-formatter branch June 4, 2025 20:24
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.

Add a code formatter for the C code
1 participant