pelikan
pelikan copied to clipboard
choose a linter/formatting tool
A few things to consider:
- availability across all platforms we plan to support;
- customized rules;
- IDE/editor integration;
- build integration.
@seppo0010 @kevyang @sagar0 continuing our discussion earlier...
Candidates so far:
- http://astyle.sourceforge.net/
- http://clang.llvm.org/docs/ClangFormat.html
Please review/add/comment
Both astyle and clang-format are available in brew and aptitude. Either of them works for me.
I recommend that we use clang-format mainly due to better IDE/editor integration.
Will create a style config file specifying rules according to our style guide.
Can you also please include in the readme how to install it and how to integrate with the editor of your choice (hopefully vim).