-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Automated style linting for C source code #1532
Comments
I'll copy my response here as well, for posterity and to kick off the conversation.
|
In the sync call, no one was opposed to introducing some automatic style linting to the C style, provided that it doesn't add any additional requirements to building Pony (essentially, that linting is a separate action). So if anyone wants to do a PR to introduce C style linting to match our current C style, it would be welcome. |
Does anyone have a preference on this? I'm thinking GNU ident. |
Sorry, I meant to write up some details about this since I have some experience with it. There are a variety of tools I personally prefer over indent, but the easiest and most widespread is clang-format. https://zed0.co.uk/clang-format-configurator/ The tricky thing is detecting style violations without aggressively reformatting any existing code or introducing outright barbarisms. I seem to recall astyle had a few suitable options in this respect. |
@tokenrove Sylvan says he likes that clang formatter. So I would say this is now "ready for work" with a specific tool in mind. |
I've been working on this a little. Below is the beginnings of a
|
I've opened this issue to discuss adding automated style linting for the C source.
This was mentioned by @tokenrove in #1526 (comment).
The text was updated successfully, but these errors were encountered: