Handmade Network»Forums
Connor Stack
3 posts / 1 project
None
C linter
Does anybody use / know of a good C linter / formatter? I want the equivalent of gofmt for Go or Rubocop for Ruby
Mārtiņš Možeiko
2562 posts / 2 projects
C linter
I have used clang-format a lot. It's is pretty nice, you can configure it to your liking and it has integration into ton of a IDE's/editors.
Connor Stack
3 posts / 1 project
None
C linter
Awesome, thanks for the tip.

On my mac I was able to `brew install clang-format` then run `clang-format -style=Google -i *.c` to format all my C files with Google's style rules.