git clone git@github.com:<your-username>/circ.git
Install the dependencies, see README.md.
clang
(forclang-format
,clang-tidy
)
Symlink .githooks
to .git/hooks
.
Push to your fork, then submit a pull request
- Please get rid of any warnings
clang-format
andclang-tidy
spew. - Put a space before parens.
- Use snake case.
- Don't code like a rockstar.
See editor configuration for integrating with the above.
If you use Vim
+ ALE
, you can set it up to lint source files with:
let g:ale_fixers = { }
let g:ale_fixers['c'] = ['clang-format']
let g:ale_linters = { }
let g:ale_linters['c'] = ['clangtidy']
Reformat source files with clang-format
with ALEFix
.
Please ensure you have the development dependencies installed.